From e868e6eb182add3a8f32a9be4cb0693b69605a13 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Tue, 1 Sep 2020 15:17:10 +0200 Subject: [PATCH] No bds prefix for prod --- cof/urls.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cof/urls.py b/cof/urls.py index d96b14c4..5e49ba0a 100644 --- a/cof/urls.py +++ b/cof/urls.py @@ -15,9 +15,13 @@ urlpatterns = [ ] # 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 = { - "bds": "bds/", + "bds": "" if bds_is_alone else "bds/", "gestioncof": "", "bda": "bda/", "petitscours": "petitcours/",