All pages go under /gestion except wagtail & k-fet

This commit is contained in:
Martin Pépin 2020-08-30 18:04:03 +02:00
parent 2aae281120
commit 2b72f3b40b
No known key found for this signature in database
GPG key ID: E7520278B1774448

View file

@ -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