2019-07-10 13:11:13 +00:00
|
|
|
|
|
|
|
# Database backend selection - Configure backend database settings
|
|
|
|
# Ref: https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-DATABASES
|
|
|
|
# Specify database parameters below as they appear in the Django docs
|
|
|
|
database:
|
2019-08-14 02:05:47 +00:00
|
|
|
# Example configuration - sqlite (default)
|
2019-07-10 13:11:13 +00:00
|
|
|
ENGINE: django.db.backends.sqlite3
|
2019-09-10 04:18:20 +00:00
|
|
|
NAME: '../inventree_default_db.sqlite3'
|
2019-07-10 13:11:13 +00:00
|
|
|
|
|
|
|
# For more complex database installations, further parameters are required
|
|
|
|
# Refer to the django documentation for full list of options
|
2019-08-14 02:05:47 +00:00
|
|
|
|
|
|
|
# Example Configuration - MySQL
|
|
|
|
#ENGINE: django.db.backends.mysql
|
|
|
|
#NAME: inventree
|
2019-09-01 12:16:58 +00:00
|
|
|
#USER: inventree_username
|
|
|
|
#PASSWORD: inventree_password
|
2019-08-14 02:05:47 +00:00
|
|
|
#HOST: ''
|
|
|
|
#PORT: ''
|
2019-07-10 13:11:13 +00:00
|
|
|
|
2019-09-26 00:07:18 +00:00
|
|
|
# Select default system language (default is 'en-us')
|
2019-09-25 23:56:41 +00:00
|
|
|
language: en-us
|
|
|
|
|
2019-07-10 13:11:13 +00:00
|
|
|
# Set debug to False to run in production mode
|
|
|
|
debug: True
|
|
|
|
|
2019-07-10 13:25:15 +00:00
|
|
|
# Allowed hosts (see ALLOWED_HOSTS in Django settings documentation)
|
|
|
|
# A list of strings representing the host/domain names that this Django site can serve.
|
|
|
|
# Default behaviour is to allow all hosts (THIS IS NOT SECURE!)
|
|
|
|
allowed_hosts:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
# Cross Origin Resource Sharing (CORS) settings (see https://github.com/ottoyiu/django-cors-headers)
|
|
|
|
# Following parameters are
|
|
|
|
cors:
|
2019-07-10 13:48:33 +00:00
|
|
|
# CORS_ORIGIN_ALLOW_ALL - If True, the whitelist will not be used and all origins will be accepted.
|
|
|
|
allow_all: True
|
2019-07-10 13:25:15 +00:00
|
|
|
|
|
|
|
# CORS_ORIGIN_WHITELIST - A list of origins that are authorized to make cross-site HTTP requests. Defaults to []
|
|
|
|
# whitelist:
|
|
|
|
# - https://example.com
|
|
|
|
# - https://sub.example.com
|
|
|
|
|
2019-07-10 13:41:33 +00:00
|
|
|
# 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
|
2019-09-10 04:18:20 +00:00
|
|
|
media_root: '../inventree_media'
|
2019-07-10 13:41:33 +00:00
|
|
|
|
2019-07-10 13:48:33 +00:00
|
|
|
# STATIC_ROOT is the local filesystem location for storing static files
|
|
|
|
# By default it is stored in a directory named 'static' local to the InvenTree directory
|
2019-09-10 04:18:20 +00:00
|
|
|
static_root: '../inventree_static'
|
2019-07-10 13:48:33 +00:00
|
|
|
|
2019-09-13 14:03:13 +00:00
|
|
|
# Optional URL schemes to allow in URL fields
|
|
|
|
# By default, only the following schemes are allowed: ['http', 'https', 'ftp', 'ftps']
|
|
|
|
# Uncomment the lines below to allow extra schemes
|
|
|
|
#extra_url_schemes:
|
|
|
|
# - mailto
|
|
|
|
# - git
|
|
|
|
# - ssh
|
|
|
|
|
2019-07-10 13:11:13 +00:00
|
|
|
# Logging options
|
2019-09-13 14:03:13 +00:00
|
|
|
# If debug mode is enabled, set log_queries to True to show aggregate database queries in the debug console
|
2019-08-01 10:07:06 +00:00
|
|
|
log_queries: False
|
|
|
|
|
|
|
|
# Backup options
|
|
|
|
# Set the backup_dir parameter to store backup files in a specific location
|
2019-09-01 12:16:58 +00:00
|
|
|
# If unspecified, the local user's temp directory will be used
|
2019-08-14 06:56:54 +00:00
|
|
|
#backup_dir: '/home/inventree/backup/'
|