Migrate DEFAULT_FILE_STORAGE to STORAGES

This commit is contained in:
Brian Tiemann
2025-01-15 10:18:30 -05:00
committed by Jeremy Stretch
parent 07ad4c1321
commit 50b7f46fc0

View File

@@ -222,8 +222,18 @@ DATABASES = {
# Storage backend
#
# Default STORAGES for Django
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
},
"staticfiles": {
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
},
}
if STORAGE_BACKEND is not None:
DEFAULT_FILE_STORAGE = STORAGE_BACKEND
STORAGES['default']['BACKEND'] = STORAGE_BACKEND
# django-storages
if STORAGE_BACKEND.startswith('storages.'):