Fix upload failure: add default storage backend to STORAGES
Django 5.x requires a 'default' key in STORAGES for FileField uploads. Only 'staticfiles' was defined, causing InvalidStorageError on upload. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8c53efe43d
commit
0d3ffb1060
|
|
@ -90,6 +90,9 @@ USE_TZ = True
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
STATIC_ROOT = BASE_DIR / 'staticfiles'
|
STATIC_ROOT = BASE_DIR / 'staticfiles'
|
||||||
STORAGES = {
|
STORAGES = {
|
||||||
|
'default': {
|
||||||
|
'BACKEND': 'django.core.files.storage.FileSystemStorage',
|
||||||
|
},
|
||||||
'staticfiles': {
|
'staticfiles': {
|
||||||
'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage',
|
'BACKEND': 'whitenoise.storage.CompressedManifestStaticFilesStorage',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue