Skip to content

Commit

Permalink
Change setting from lower to upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiagiupponi committed Mar 11, 2021
1 parent 8da37f2 commit 77adf4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/scheduler/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77adf4a

Please sign in to comment.