No bds prefix for prod
This commit is contained in:
parent
fc988e3fad
commit
e868e6eb18
1 changed files with 6 additions and 2 deletions
|
@ -15,9 +15,13 @@ urlpatterns = [
|
||||||
]
|
]
|
||||||
|
|
||||||
# App-specific urls
|
# App-specific urls
|
||||||
# TODO : mettre le préfixe de bds à "" sur gestioBDS ?
|
|
||||||
|
bds_is_alone = (
|
||||||
|
"bds" in settings.INSTALLED_APPS and "gestioncof" not in settings.INSTALLED_APPS
|
||||||
|
)
|
||||||
|
|
||||||
app_dict = {
|
app_dict = {
|
||||||
"bds": "bds/",
|
"bds": "" if bds_is_alone else "bds/",
|
||||||
"gestioncof": "",
|
"gestioncof": "",
|
||||||
"bda": "bda/",
|
"bda": "bda/",
|
||||||
"petitscours": "petitcours/",
|
"petitscours": "petitcours/",
|
||||||
|
|
Loading…
Reference in a new issue