Comments for settings.py

This commit is contained in:
Oliver Walters 2019-09-02 16:44:01 +10:00
parent 92940f1333
commit b0c420858b

View File

@ -231,16 +231,20 @@ USE_TZ = True
# Static files (CSS, JavaScript, Images) # Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.10/howto/static-files/ # https://docs.djangoproject.com/en/1.10/howto/static-files/
# Web URL endpoint for served static files
STATIC_URL = '/static/' STATIC_URL = '/static/'
# The filesystem location for served static files
STATIC_ROOT = CONFIG.get('static_root', os.path.join(BASE_DIR, 'static')) STATIC_ROOT = CONFIG.get('static_root', os.path.join(BASE_DIR, 'static'))
STATICFILES_DIRS = [ STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'InvenTree', 'static'), os.path.join(BASE_DIR, 'InvenTree', 'static'),
] ]
# Web URL endpoint for served media files
MEDIA_URL = '/media/' MEDIA_URL = '/media/'
# The filesystem location for served static files
MEDIA_ROOT = CONFIG.get('media_root', os.path.join(BASE_DIR, 'media')) MEDIA_ROOT = CONFIG.get('media_root', os.path.join(BASE_DIR, 'media'))
# crispy forms use the bootstrap templates # crispy forms use the bootstrap templates