From e4ef2d7862183957141db5f0c7367ecd5987eea7 Mon Sep 17 00:00:00 2001 From: Ben Sturmfels Date: Mon, 13 May 2024 17:55:54 +1000 Subject: [PATCH] Switch to ManifestStaticFilesStorage for hashed URLs to static files --- conservancy/settings/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/conservancy/settings/base.py b/conservancy/settings/base.py index df81f8a0..22ebd150 100644 --- a/conservancy/settings/base.py +++ b/conservancy/settings/base.py @@ -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/'