forked from DGNum/gestioCOF
All pages go under /gestion except wagtail & k-fet
This commit is contained in:
parent
2aae281120
commit
2b72f3b40b
1 changed files with 7 additions and 6 deletions
13
cof/urls.py
13
cof/urls.py
|
@ -22,13 +22,13 @@ bds_is_alone = (
|
||||||
|
|
||||||
app_dict = {
|
app_dict = {
|
||||||
"bds": "" if bds_is_alone else "bds/",
|
"bds": "" if bds_is_alone else "bds/",
|
||||||
"gestioncof": "",
|
|
||||||
"bda": "bda/",
|
|
||||||
"petitscours": "petitcours/",
|
|
||||||
"kfet": "k-fet/",
|
"kfet": "k-fet/",
|
||||||
# events module is still experimental !
|
# Below = GestioCOF → goes under gestion/
|
||||||
"events": "event_v2/",
|
"gestioncof": "gestion/",
|
||||||
"authens": "authens/",
|
"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():
|
for (app_name, url_prefix) in app_dict.items():
|
||||||
if app_name in settings.INSTALLED_APPS:
|
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.
|
# Il faut dire à Django de servir MEDIA_ROOT lui-même en développement.
|
||||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||||
|
|
||||||
|
|
||||||
# Wagtail URLs (wagtail.core urls must be last, as catch-all)
|
# Wagtail URLs (wagtail.core urls must be last, as catch-all)
|
||||||
if "wagtail.core" in settings.INSTALLED_APPS:
|
if "wagtail.core" in settings.INSTALLED_APPS:
|
||||||
from wagtail.admin import urls as wagtailadmin_urls
|
from wagtail.admin import urls as wagtailadmin_urls
|
||||||
|
|
Loading…
Reference in a new issue