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 f94d5a1de5
commit 4744d8c015

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/'