Skip to content

Commit

Permalink
feat: add settings for the storage that manages files
Browse files Browse the repository at this point in the history
  • Loading branch information
lalver1 committed Nov 7, 2024
1 parent 2b76148 commit 31dcf32
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benefits/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,14 @@ def RUNTIME_ENVIRONMENT():
STATICFILES_DIRS = [os.path.join(BASE_DIR, "benefits", "static")]
# use Manifest Static Files Storage by default
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
},
"staticfiles": {
"BACKEND": os.environ.get(
"DJANGO_STATICFILES_STORAGE", "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
)
}
},
}
STATIC_ROOT = os.path.join(BASE_DIR, "static")

Expand Down

0 comments on commit 31dcf32

Please sign in to comment.