mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
MEDIA_ROOT is now provided in config.yaml
This commit is contained in:
@ -221,7 +221,7 @@ STATICFILES_DIRS = [
|
||||
|
||||
MEDIA_URL = '/media/'
|
||||
|
||||
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_TEMPLATE_PACK = 'bootstrap'
|
||||
|
@ -33,5 +33,10 @@ cors:
|
||||
# - https://example.com
|
||||
# - https://sub.example.com
|
||||
|
||||
# MEDIA_ROOT is the local filesystem location for storing uploaded files
|
||||
# By default, it is stored in a directory named 'media' local to the InvenTree directory
|
||||
# This should be changed for a production installation
|
||||
media_root: './media'
|
||||
|
||||
# Logging options
|
||||
log_queries: False
|
Reference in New Issue
Block a user