mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Print out MEDIA_ROOT directory if in debug mode
This commit is contained in:
parent
725eb3c538
commit
534b60d4b8
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user