Skip to content

Commit

Permalink
feat: Include STORAGES variable in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hepplerj committed Sep 26, 2024
1 parent 2031844 commit 7cd8829
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@
STATICFILES_DIRS = (os.path.join(BASE_DIR, "static"),)

# Media files
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
},
"staticfiles": {
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
},
}
OBJ_STORAGE = env("OBJ_STORAGE", default=False)
if OBJ_STORAGE:
AWS_ACCESS_KEY_ID = env("OBJ_STORAGE_ACCESS_KEY_ID")
Expand Down

0 comments on commit 7cd8829

Please sign in to comment.