Switch to ManifestStaticFilesStorage for hashed URLs to static files

This commit is contained in:
Ben Sturmfels 2024-05-13 17:55:54 +10:00
parent 783cdc6189
commit e4ef2d7862
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -128,6 +128,7 @@ STATIC_ROOT = BASE_DIR.parent / 'collected_static'
STATICFILES_DIRS = [
BASE_DIR / 'static',
]
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
MEDIA_ROOT = BASE_DIR.parent / 'media'
MEDIA_URL = '/media/'