diff --git a/config/settings/production.py b/config/settings/production.py index bdd07ed..bec6b89 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -93,12 +93,7 @@ AWS_HEADERS = { # Static Assets # ------------------------ # STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage' -STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage' -# COMPRESSOR -# ------------------------------------------------------------------------------ -COMPRESS_STORAGE = 'storages.backends.s3boto.S3BotoStorage' -COMPRESS_URL = STATIC_URL -COMPRESS_ENABLED = env.bool('COMPRESS_ENABLED', default=True) +# STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage' # EMAIL # ------------------------------------------------------------------------------ DEFAULT_FROM_EMAIL = env('DJANGO_DEFAULT_FROM_EMAIL', @@ -236,4 +231,8 @@ AWS_LOCATION = 'static' STATIC_URL = '%s/%s/%s/' % (AWS_S3_ENDPOINT_URL, AWS_STORAGE_BUCKET_NAME, AWS_LOCATION) STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage' +# COMPRESSOR +# ------------------------------------------------------------------------------ +COMPRESS_STORAGE = STATICFILES_STORAGE +COMPRESS_ENABLED = env.bool('COMPRESS_ENABLED', default=True) COMPRESS_URL = STATIC_URL