Skip to content

Commit

Permalink
Update storages setting for Production
Browse files Browse the repository at this point in the history
  • Loading branch information
WayneLambert committed Dec 11, 2023
1 parent b1c71e8 commit 858331f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions aa_project/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,15 @@
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
SECURE_REFERRER_POLICY = "same-origin"

# Static files
STATICFILES_STORAGE = "whitenoise.storage.CompressedStaticFilesStorage"
# Django Storages Settings
STORAGES = {
"default": {
"BACKEND": "storages.backends.s3boto3.S3Boto3Storage",
},
"staticfiles": {
"BACKEND": "whitenoise.storage.CompressedStaticFilesStorage",
},
}

# Heroku Deployment Settings for Postgres
db_from_env = dj_database_url.config(conn_max_age=600, ssl_require=True)
Expand Down

0 comments on commit 858331f

Please sign in to comment.