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 import django_cas_ng.views as cas_views
urlpatterns = [ urlpatterns = [
path('admin/', admin.site.urls), path("", include("fiches.urls")),
path('fiche/', include('fiches.urls')), path("admin/", admin.site.urls),
path('', HomeView.as_view(), name='home'), path("accounts/login/", cas_views.LoginView.as_view(), name="cas_ng_login"),
path('birthday', BirthdayView.as_view(), name='birthday'), path("logout", cas_views.LogoutView.as_view(), name="cas_ng_logout"),
path('accounts/login/', cas_views.LoginView.as_view(), name='cas_ng_login'), path("i18n/", include("django.conf.urls.i18n")),
path('logout', cas_views.LogoutView.as_view(), name='cas_ng_logout'),
] ]
if settings.DEBUG: if settings.DEBUG:

View file

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