Skip to content

Commit

Permalink
Bump django from 4.1.7 to 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
elisakiv committed Jan 18, 2024
1 parent 63a171f commit b7a78a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/web/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b7a78a3

Please sign in to comment.