Changeset - 34b51240e956
[Not reviewed]
0 1 0
Ben Sturmfels (bsturmfels) - 10 days ago 2024-10-08 12:53:15
ben@sturm.com.au
Use STORAGGES setting to avoid deprecation warning
1 file changed with 9 insertions and 1 deletions:
0 comments (0 inline, 0 general)
conservancy/settings/base.py
Show inline comments
...
 
@@ -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/'
0 comments (0 inline, 0 general)