Django 5.1+ removes STATICFILES_STORAGE in favour of the STORAGES dict. The old setting was silently ignored on Django 5.2, causing StaticFilesStorage (the default) to be used instead of CompressedManifestStaticFilesStorage. Result: no content-hashed filenames, no staticfiles.json manifest, and Cloudflare caching /static/css/styles.css indefinitely with no cache busting on deploy. Fix: use STORAGES in base.py (CompressedManifestStaticFilesStorage) and development.py (plain StaticFilesStorage, whitenoise disabled in dev). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
4.7 KiB
4.7 KiB