File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 182
182
MEDIA_ROOT = os .path .join (PROJECT_DIR , "media" )
183
183
MEDIA_URL = "/media/"
184
184
185
+ # Default storage settings, with the staticfiles storage updated.
186
+ # See https://docs.djangoproject.com/en/stable/ref/settings/#std-setting-STORAGES
185
187
STORAGES = {
186
188
"default" : {
187
189
"BACKEND" : "django.core.files.storage.FileSystemStorage" ,
188
190
},
191
+ # ManifestStaticFilesStorage is recommended in production, to prevent
192
+ # outdated JavaScript / CSS assets being served from cache
193
+ # (e.g. after a Wagtail upgrade).
194
+ # See https://docs.djangoproject.com/en/stable/ref/contrib/staticfiles/#manifeststaticfilesstorage
189
195
"staticfiles" : {
190
- "BACKEND" : "django.contrib.staticfiles.storage.StaticFilesStorage " ,
196
+ "BACKEND" : "django.contrib.staticfiles.storage.ManifestStaticFilesStorage " ,
191
197
},
192
198
}
193
199
You can’t perform that action at this time.
0 commit comments