whitenoise overriding

This commit is contained in:
Ruidy Nemausat 2019-12-03 18:02:09 +01:00
parent 61e070aa9a
commit a74efde793
2 changed files with 6 additions and 1 deletions

5
storage.py Normal file
View file

@ -0,0 +1,5 @@
from whitenoise.storage import CompressedManifestStaticFilesStorage
class WhiteNoiseStaticFilesStorage(CompressedManifestStaticFilesStorage):
manifest_strict = False

View file

@ -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']