Skip to content

Commit

Permalink
Explicitly define the STORAGES setting
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
atodorov committed Jan 5, 2025
1 parent d51ad41 commit ea4ddb1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tcms/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,17 @@
}
}

# https://docs.djangoproject.com/en/5.1/ref/settings/#std-setting-STORAGES
STORAGES = {
"default": {
"BACKEND": "django.core.files.storage.FileSystemStorage",
},
"staticfiles": {
"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage",
},
}


# Absolute path to the directory static files should be collected to.
# Don't put anything in this directory yourself; store your static files
# in apps' "static/" subdirectories and in STATICFILES_DIRS.
Expand Down

0 comments on commit ea4ddb1

Please sign in to comment.