From d61fdd912dc4a2e24164738d48373f368764afdb Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Wed, 27 Jan 2021 21:58:24 +0100 Subject: [PATCH] =?UTF-8?q?On=20d=C3=A9place=20les=20urls=20vers=20l'appli?= =?UTF-8?q?=20fiches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- annuaire/urls.py | 11 +++++------ fiches/urls.py | 6 ++++-- 2 files changed, 9 insertions(+), 8 deletions(-) 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"), ]