aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-06-29 15:59:16 +0100
committerMatthew Lemon <y@yulqen.org>2024-06-29 15:59:16 +0100
commitacbaff59767fc8c185fea5ed6faa618cb519cfee (patch)
treec252898012daa321614e560536abb9dde3dfc38a /config
parent1575f3b6644e7dd41799f0be009fcf9c3148d466 (diff)
Adds whitenoise compression
Diffstat (limited to 'config')
-rw-r--r--config/settings/production.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/config/settings/production.py b/config/settings/production.py
index 1c04152..0034fd8 100644
--- a/config/settings/production.py
+++ b/config/settings/production.py
@@ -88,14 +88,14 @@ SECURE_CONTENT_TYPE_NOSNIFF = env.bool(
# aws_s3_domain = AWS_S3_CUSTOM_DOMAIN or f"{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com"
# # STATIC & MEDIA
# # ------------------------
-# STORAGES = {
-# "default": {
-# "BACKEND": "django.core.files.storage.FileSystemStorage",
-# },
-# "staticfiles": {
-# "BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
-# },
-# }
+STORAGES = {
+ # "default": {
+ # "BACKEND": "django.core.files.storage.FileSystemStorage",
+ # },
+ "staticfiles": {
+ "BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage",
+ },
+}
# MEDIA_URL = f"https://{aws_s3_domain}/media/"
# COLLECTFAST_STRATEGY = "collectfast.strategies.boto3.Boto3Strategy"
# STATIC_URL = f"https://{aws_s3_domain}/static/"