diff --git a/annuaire/urls.py b/annuaire/urls.py index a26909d..8d2de91 100644 --- a/annuaire/urls.py +++ b/annuaire/urls.py @@ -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: diff --git a/fiches/urls.py b/fiches/urls.py index df6d18c..b88b23b 100644 --- a/fiches/urls.py +++ b/fiches/urls.py @@ -2,6 +2,8 @@ from django.urls import path from . import views urlpatterns = [ - path("edit", views.EditView.as_view(), name="fiche_modif"), - path("", 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/", views.FicheView.as_view(), name="fiche"), + path("birthday", views.BirthdayView.as_view(), name="birthday"), ]