Skip to content

Commit ea4ddb1

Browse files
committed
Explicitly define the STORAGES setting
so we can override it later. Note that DEFAULT_FILE_STORAGE and STATICFILES_STORAGE settings have been deprecated since Django 4.2 and have been removed in Django 5.1!
1 parent d51ad41 commit ea4ddb1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tcms/settings/common.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,17 @@
169169
}
170170
}
171171

172+
# https://docs.djangoproject.com/en/5.1/ref/settings/#std-setting-STORAGES
173+
STORAGES = {
174+
"default": {
175+
"BACKEND": "django.core.files.storage.FileSystemStorage",
176+
},
177+
"staticfiles": {
178+
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
179+
},
180+
}
181+
182+
172183
# Absolute path to the directory static files should be collected to.
173184
# Don't put anything in this directory yourself; store your static files
174185
# in apps' "static/" subdirectories and in STATICFILES_DIRS.

0 commit comments

Comments
 (0)