Use STORAGGES setting to avoid deprecation warning
This commit is contained in:
parent
fcccd6f72f
commit
34b51240e9
1 changed files with 9 additions and 1 deletions
|
@ -123,12 +123,20 @@ TIME_ZONE = 'America/New_York'
|
||||||
LANGUAGE_CODE = 'en-us'
|
LANGUAGE_CODE = 'en-us'
|
||||||
USE_TZ = False
|
USE_TZ = False
|
||||||
|
|
||||||
|
STORAGES = {
|
||||||
|
'default': {
|
||||||
|
'BACKEND': 'django.core.files.storage.FileSystemStorage',
|
||||||
|
},
|
||||||
|
'staticfiles': {
|
||||||
|
'BACKEND': 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
STATIC_URL = '/static/'
|
STATIC_URL = '/static/'
|
||||||
STATIC_ROOT = BASE_DIR.parent / 'collected_static'
|
STATIC_ROOT = BASE_DIR.parent / 'collected_static'
|
||||||
STATICFILES_DIRS = [
|
STATICFILES_DIRS = [
|
||||||
BASE_DIR / 'static',
|
BASE_DIR / 'static',
|
||||||
]
|
]
|
||||||
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.ManifestStaticFilesStorage'
|
|
||||||
|
|
||||||
MEDIA_ROOT = BASE_DIR.parent / 'media'
|
MEDIA_ROOT = BASE_DIR.parent / 'media'
|
||||||
MEDIA_URL = '/media/'
|
MEDIA_URL = '/media/'
|
||||||
|
|
Loading…
Reference in a new issue