From b7a78a38b540b3e62099c0ecc35b9618fe24993d Mon Sep 17 00:00:00 2001 From: elisakiv Date: Thu, 18 Jan 2024 19:41:00 +0100 Subject: [PATCH] Bump django from 4.1.7 to 4.2.0 --- requirements.txt | 2 +- src/web/settings.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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