On déplace les urls vers l'appli fiches

This commit is contained in:
Tom Hubrecht 2021-01-27 21:58:24 +01:00
parent e17d768ded
commit d61fdd912d
2 changed files with 9 additions and 8 deletions

View file

@ -21,12 +21,11 @@ from fiches.views import BirthdayView, HomeView
import django_cas_ng.views as cas_views
urlpatterns = [
path('admin/', admin.site.urls),
path('fiche/', include('fiches.urls')),
path('', HomeView.as_view(), name='home'),
path('birthday', BirthdayView.as_view(), name='birthday'),
path('accounts/login/', cas_views.LoginView.as_view(), name='cas_ng_login'),
path('logout', cas_views.LogoutView.as_view(), name='cas_ng_logout'),
path("", include("fiches.urls")),
path("admin/", admin.site.urls),
path("accounts/login/", cas_views.LoginView.as_view(), name="cas_ng_login"),
path("logout", cas_views.LogoutView.as_view(), name="cas_ng_logout"),
path("i18n/", include("django.conf.urls.i18n")),
]
if settings.DEBUG:

View file

@ -2,6 +2,8 @@ from django.urls import path
from . import views
urlpatterns = [
path("edit", views.EditView.as_view(), name="fiche_modif"),
path("<user>", views.FicheView.as_view(), name="fiche"),
path("", views.HomeView.as_view(), name="home"),
path("fiche/edit", views.EditView.as_view(), name="fiche_modif"),
path("fiche/<user>", views.FicheView.as_view(), name="fiche"),
path("birthday", views.BirthdayView.as_view(), name="birthday"),
]