diff --git a/storage.py b/storage.py index f994ced..22fb970 100644 --- a/storage.py +++ b/storage.py @@ -1,5 +1,5 @@ -from whitenoise.storage import CompressedManifestStaticFilesStorage +from whitenoise import CompressedManifestStaticFiles -class WhiteNoiseStaticFilesStorage(CompressedManifestStaticFilesStorage): +class WhiteNoiseStaticFiles(CompressedManifestStaticFiles): manifest_strict = False diff --git a/villafleurie/settings.py b/villafleurie/settings.py index 4247176..1e1499b 100644 --- a/villafleurie/settings.py +++ b/villafleurie/settings.py @@ -37,9 +37,10 @@ MIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware' ] -# if os.environ.get('ENV') == 'PRODUCTION': -# STATICFILES_STORAGE = 'storage.WhiteNoiseStaticFilesStorage' -# STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' +if os.environ.get('ENV') == 'PRODUCTION': + # STATICFILES_STORAGE = 'storage.WhiteNoiseStaticFilesStorage' + # STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' + STATICFILES_STORAGE = 'whitenoise.storage.CompressedStaticFilesStorage' # STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'