Print out MEDIA_ROOT directory if in debug mode

This commit is contained in:
Oliver Walters 2020-02-10 23:43:41 +11:00
parent 725eb3c538
commit 534b60d4b8

View File

@ -308,7 +308,10 @@ STATICFILES_DIRS = [
MEDIA_URL = '/media/'
# The filesystem location for served static files
MEDIA_ROOT = CONFIG.get('media_root', os.path.join(BASE_DIR, 'media'))
MEDIA_ROOT = os.path.abspath(CONFIG.get('media_root', os.path.join(BASE_DIR, 'media')))
if DEBUG:
print("MEDIA_ROOT:", MEDIA_ROOT)
# crispy forms use the bootstrap templates
CRISPY_TEMPLATE_PACK = 'bootstrap'