Skip to content

Commit

Permalink
Adds STATICFILES_STORAGE config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Nov 4, 2024
1 parent c5d84db commit 5e3b9fe
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions ov_wag/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,19 @@
AWS_SECRET_ACCESS_KEY = env.get('AWS_SECRET_ACCESS_KEY')
AWS_S3_FILE_OVERWRITE = False
AWS_S3_REGION_NAME = env.get('AWS_S3_REGION_NAME', 'us-east-1')
STATICFILES_STORAGE = 'storages.backends.s3.S3Storage'

STORAGES = {
"default": {
"BACKEND": "storages.backends.s3.S3Storage",
"OPTIONS": {},
}
'default': {
'BACKEND': 'storages.backends.s3.S3Storage',
'OPTIONS': {},
},
'staticfiles': {
'BACKEND': 'storages.backends.s3.S3Storage',
'OPTIONS': {
'location': 'static',
},
},
}

with suppress(ImportError):
Expand Down

0 comments on commit 5e3b9fe

Please sign in to comment.