mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-12 05:16:50 +00:00
whitenoise overriding
This commit is contained in:
parent
61e070aa9a
commit
a74efde793
2 changed files with 6 additions and 1 deletions
5
storage.py
Normal file
5
storage.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from whitenoise.storage import CompressedManifestStaticFilesStorage
|
||||
|
||||
|
||||
class WhiteNoiseStaticFilesStorage(CompressedManifestStaticFilesStorage):
|
||||
manifest_strict = False
|
||||
|
|
@ -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']
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue