Skip to content

Commit 2d1cc26

Browse files
committed
feat: add the location where uploaded files will be saved to
1 parent af4d682 commit 2d1cc26

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

benefits/settings.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,14 @@ def RUNTIME_ENVIRONMENT():
238238
"BACKEND": os.environ.get(
239239
"DJANGO_STATICFILES_STORAGE", "django.contrib.staticfiles.storage.ManifestStaticFilesStorage"
240240
)
241-
}
241+
},
242242
}
243243
STATIC_ROOT = os.path.join(BASE_DIR, "static")
244244

245+
# User-uploaded files (agency logos)
246+
247+
MEDIA_ROOT = os.environ.get("DJANGO_DB_DIR", BASE_DIR) + "/agencies/"
248+
245249
# Logging configuration
246250
LOG_LEVEL = os.environ.get("DJANGO_LOG_LEVEL", "DEBUG" if DEBUG else "WARNING")
247251
LOGGING = {

0 commit comments

Comments
 (0)