diff --git a/app/scheduler/views.py b/app/scheduler/views.py index e6df564..aa4b446 100644 --- a/app/scheduler/views.py +++ b/app/scheduler/views.py @@ -94,7 +94,7 @@ def get(self, request): database_user = settings.DATABASES[u'system'][u'USER'] app_version = settings.APP_VERSION - environment = u'SVILUPPO' if settings.url_path_prefix else u'PRODUZIONE' + environment = u'SVILUPPO' if settings.URL_PATH_PREFIX else u'PRODUZIONE' context = { u'app_version': app_version, u'bread_crumbs': bread_crumbs, diff --git a/app/settings.py b/app/settings.py index b86e627..4177211 100644 --- a/app/settings.py +++ b/app/settings.py @@ -198,10 +198,10 @@ # Static files (CSS, JavaScript, Images) # https://docs.djangoproject.com/en/1.11/howto/static-files/ -url_path_prefix = os.getenv("URL_PATH_PREFIX", "").replace("", "") +URL_PATH_PREFIX = os.getenv("URL_PATH_PREFIX", "").replace("", "") -STATIC_URL = f'{url_path_prefix}static/' -STATIC_ROOT = os.getenv("STATIC_ROOT", os.path.join(BASE_DIR, f"{url_path_prefix}static_root")) +STATIC_URL = f'{URL_PATH_PREFIX}static/' +STATIC_ROOT = os.getenv("STATIC_ROOT", os.path.join(BASE_DIR, f"{URL_PATH_PREFIX}static_root")) STATICFILES_DIRS = [os.path.join(BASE_DIR, 'app', 'static')] # LDAP CONFIG