fix: enable hashed static assets for deploy cache busting

This commit is contained in:
Md Bayazid Bostame
2026-03-30 12:48:59 +02:00
parent c27ac84c06
commit 97c1cad3ef

View File

@@ -144,6 +144,14 @@ USE_TZ = True
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATIC_ROOT = BASE_DIR / 'staticfiles' STATIC_ROOT = BASE_DIR / 'staticfiles'
STATIC_ROOT.mkdir(parents=True, exist_ok=True) STATIC_ROOT.mkdir(parents=True, exist_ok=True)
STORAGES = {
'default': {
'BACKEND': 'django.core.files.storage.FileSystemStorage',
},
'staticfiles': {
'BACKEND': 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage',
},
}
MEDIA_URL = '/media/' MEDIA_URL = '/media/'
MEDIA_ROOT = BASE_DIR / 'media' MEDIA_ROOT = BASE_DIR / 'media'