You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Replace deprecated DEFAULT_FILE_STORAGE with STORAGES dict
- Replace deprecated STATICFILES_STORAGE with STORAGES dict
- Configure S3 storage backend in production settings
- Set MEDIA_URL to point to S3 custom domain
- Document storage configuration in CLAUDE.md
Copy file name to clipboardExpand all lines: CLAUDE.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,6 +223,15 @@ After upgrading Wagtail to a new version, you must:
223
223
3. Clear and recollect static files: `docker compose run --rm web python pythonie/manage.py collectstatic --clear --noinput`
224
224
4.**Clear your browser cache** (Ctrl+Shift+R or Cmd+Shift+R) - this is critical as Wagtail admin JavaScript files are cached and stale cache can cause the admin sidebar menu to disappear with errors like `wagtailConfig is undefined`.
225
225
226
+
### Storage Configuration (Django 5.1+)
227
+
228
+
Django 5.1 removed `DEFAULT_FILE_STORAGE` and `STATICFILES_STORAGE` settings. The project now uses the `STORAGES` API:
229
+
230
+
-**base.py**: Defines default storage (FileSystemStorage) and staticfiles (WhiteNoise)
231
+
-**production.py**: Overrides default storage to use S3 (`storages.backends.s3boto3.S3Boto3Storage`)
232
+
233
+
If you see 404 errors for images after upgrading Django, ensure `STORAGES` is properly configured instead of the deprecated settings.
234
+
226
235
### Documentation Language
227
236
228
237
All documentation and code comments must be written in English to ensure all contributors can collaborate effectively.
0 commit comments