mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-12 13:26:47 +00:00
staticfiles
This commit is contained in:
parent
ad8812ea36
commit
1f38d4a246
2 changed files with 6 additions and 5 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
from whitenoise.storage import CompressedManifestStaticFilesStorage
|
from whitenoise import CompressedManifestStaticFiles
|
||||||
|
|
||||||
|
|
||||||
class WhiteNoiseStaticFilesStorage(CompressedManifestStaticFilesStorage):
|
class WhiteNoiseStaticFiles(CompressedManifestStaticFiles):
|
||||||
manifest_strict = False
|
manifest_strict = False
|
||||||
|
|
|
||||||
|
|
@ -37,9 +37,10 @@ MIDDLEWARE = [
|
||||||
'django.middleware.security.SecurityMiddleware'
|
'django.middleware.security.SecurityMiddleware'
|
||||||
]
|
]
|
||||||
|
|
||||||
# if os.environ.get('ENV') == 'PRODUCTION':
|
if os.environ.get('ENV') == 'PRODUCTION':
|
||||||
# STATICFILES_STORAGE = 'storage.WhiteNoiseStaticFilesStorage'
|
# STATICFILES_STORAGE = 'storage.WhiteNoiseStaticFilesStorage'
|
||||||
# STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|
# STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|
||||||
|
STATICFILES_STORAGE = 'whitenoise.storage.CompressedStaticFilesStorage'
|
||||||
# STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
|
# STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue