From fcced921ca1a4d7aed4bd4866528113044a152a5 Mon Sep 17 00:00:00 2001 From: Christian Kreuzberger Date: Sun, 5 Apr 2020 11:47:03 +0200 Subject: [PATCH] Make sure whitenoise is used for all stage/environments --- app/tempBerry/settings/base.py | 3 +++ app/tempBerry/settings/live.py | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/tempBerry/settings/base.py b/app/tempBerry/settings/base.py index aca5d3f..df9f7ef 100644 --- a/app/tempBerry/settings/base.py +++ b/app/tempBerry/settings/base.py @@ -94,6 +94,9 @@ WSGI_APPLICATION = 'tempBerry.wsgi.application' +# static files +# ensure whitenoise static file storage is used +STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' # Database # https://docs.djangoproject.com/en/1.11/ref/settings/#databases diff --git a/app/tempBerry/settings/live.py b/app/tempBerry/settings/live.py index 2e5568e..96bf1d1 100644 --- a/app/tempBerry/settings/live.py +++ b/app/tempBerry/settings/live.py @@ -2,6 +2,3 @@ # ensure that debug is false DEBUG = False - -# ensure whitenoise static file storage is used -STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'