From a74efde793c76d2f28632a3a81851c291e5a1b17 Mon Sep 17 00:00:00 2001 From: Ruidy Nemausat Date: Tue, 3 Dec 2019 18:02:09 +0100 Subject: [PATCH] whitenoise overriding --- storage.py | 5 +++++ villafleurie/settings.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 storage.py diff --git a/storage.py b/storage.py new file mode 100644 index 0000000..f994ced --- /dev/null +++ b/storage.py @@ -0,0 +1,5 @@ +from whitenoise.storage import CompressedManifestStaticFilesStorage + + +class WhiteNoiseStaticFilesStorage(CompressedManifestStaticFilesStorage): + manifest_strict = False diff --git a/villafleurie/settings.py b/villafleurie/settings.py index f67cf03..b4c8e3e 100644 --- a/villafleurie/settings.py +++ b/villafleurie/settings.py @@ -38,7 +38,7 @@ MIDDLEWARE = [ ] if os.environ.get('ENV') == 'PRODUCTION': - STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' + STATICFILES_STORAGE = 'villafleurie.storage.CompressedManifestStaticFilesStorage' INTERNAL_IPS = ['127.0.0.1']