# 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: # Example configuration - sqlite (default) ENGINE: django.db.backends.sqlite3 NAME: inventree_db.sqlite3 # For more complex database installations, further parameters are required # Refer to the django documentation for full list of options # Example Configuration - MySQL #ENGINE: django.db.backends.mysql #NAME: inventree #USER: inventree #PASSWORD: password #HOST: '' #PORT: '' # Set debug to False to run in production mode debug: True # 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: # CORS_ORIGIN_ALLOW_ALL - If True, the whitelist will not be used and all origins will be accepted. allow_all: True # 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 # 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' # 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 static_root: './static' # Logging options log_queries: False # Backup options # Set the backup_dir parameter to store backup files in a specific location #backup_dir: '/home/inventree/backup/'