Use STORAGGES setting to avoid deprecation warning

This commit is contained in:
Ben Sturmfels 2024-10-08 23:53:15 +11:00
parent fcccd6f72f
commit 34b51240e9
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -123,12 +123,20 @@ TIME_ZONE = 'America/New_York'
LANGUAGE_CODE = 'en-us'
USE_TZ = False
STORAGES = {
'default': {
'BACKEND': 'django.core.files.storage.FileSystemStorage',
},
'staticfiles': {
'BACKEND': 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage',
},
}
STATIC_URL = '/static/'
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/'