From 2b72f3b40be112611fa5fb6644d74d82c6bc2cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Sun, 30 Aug 2020 18:04:03 +0200 Subject: [PATCH] All pages go under /gestion except wagtail & k-fet --- cof/urls.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/cof/urls.py b/cof/urls.py index 5e49ba0a..081b2af5 100644 --- a/cof/urls.py +++ b/cof/urls.py @@ -22,13 +22,13 @@ bds_is_alone = ( app_dict = { "bds": "" if bds_is_alone else "bds/", - "gestioncof": "", - "bda": "bda/", - "petitscours": "petitcours/", "kfet": "k-fet/", - # events module is still experimental ! - "events": "event_v2/", - "authens": "authens/", + # Below = GestioCOF → goes under gestion/ + "gestioncof": "gestion/", + "bda": "gestion/bda/", + "petitscours": "gestion/petitcours/", + "events": "gestion/event_v2/", # the events module is still experimental ! + "authens": "gestion/authens/", } for (app_name, url_prefix) in app_dict.items(): if app_name in settings.INSTALLED_APPS: @@ -52,6 +52,7 @@ if settings.DEBUG: # Il faut dire à Django de servir MEDIA_ROOT lui-même en développement. urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + # Wagtail URLs (wagtail.core urls must be last, as catch-all) if "wagtail.core" in settings.INSTALLED_APPS: from wagtail.admin import urls as wagtailadmin_urls