diff --git a/requirements.txt b/requirements.txt index ed7ed248..8ed8f807 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ # Django-related packages -Django==4.1.7 +Django==4.2.0 django-hosts==5.2 django-ckeditor==6.7.0 django-cleanup==8.0.0 diff --git a/src/web/settings.py b/src/web/settings.py index efd32ba7..31460c93 100644 --- a/src/web/settings.py +++ b/src/web/settings.py @@ -403,7 +403,11 @@ def generate_all_hosts(subdomains): # This is based on Django's ManifestStaticFilesStorage, which appends every static file's MD5 hash to its filename, # which avoids waiting for browsers' cache to update if a file's contents change -STATICFILES_STORAGE = 'web.static.ManifestStaticFilesStorage' +STORAGES = { + "staticfiles": { + "BACKEND": "web.static.ManifestStaticFilesStorage", + }, +} # Ignores adding a hash to the files whose paths match these glob patterns: # NOTE: Ignored files should be named so that it's obvious that they should be renamed when their contents update, # to avoid being "stuck" in browsers' cache - which is what `ManifestStaticFilesStorage` would have prevented