Settings¶
This section describes the available configuration options that
can be defined in a project’s settings.py file.
global_settings.
The global_settings module provides minimal and sane
default configuration values, that should work out of
the box.
Further options have to be configured in a project’s
settings.py file (or as set by the ‘XMM_SETTINGS_MODULE’ environment variable)
file to provide database access and to customize behaviour.
-
DEBUG= False¶ - Type
boolean
When enabled, error pages will show stacktrace and more as an interactive HTML page.
Warning
Never enable DEBUG in a production environment.
-
USE_DEBUGGER= False¶ - Type
boolean
When set, error pages will have an interactive debugger included.
-
TESTING= False¶ - Type
boolean
Wether we’re running in test mode.
-
EXTERNAL_URL= ''¶ - Type
A full URL where the front-end is reachable.
Example:
'http://xmm.customer.com/'
-
SESSION_COOKIE_HTTPONLY= False¶ - Type
boolean
Set the
httponlyflag on session cookies.
-
PASSWORD_RESET_NOTIFY= False¶ - Type
boolean
Show error messages when trying to reset a password for an invalid login.
-
MONGODB_URL= None¶ - Type
Connection string for MongoDB server.
Example:
'mongodb://user[:pass]@host:port/database'
-
REDIS_URL= 'redis://127.0.0.1:6379/0'¶ - Type
Redis key-value server connection string.
Examples:
'redis://[:password]@localhost:6379/0''unix://[:password]@/path/to/socket.sock?db=0'
-
ELASTICSEARCH_URL= 'localhost:9200'¶ - Type
ElasticSearch connection string. Must not use a protocol prefix.
Example:
'localhost:9200'
-
CELERY_BROKER_URL= None¶ - Type
Celery task queue broker connection string.
Examples:
'redis://127.0.0.1:6379/0''amqp://'
-
CELERY_RESULT_BACKEND= None¶ - Type
Celery task results storage backend.
Examples:
'redis://127.0.0.1:6379/0''mongodb://'
-
BABEL_DEFAULT_LOCALE= 'de'¶ - Type
Default language used in the user interface. Currently users cannot change this.
-
BABEL_DEFAULT_TIMEZONE= 'Europe/Zurich'¶ - Type
Default timezone used in the user interface for datetimes. Must be an identifier as used in the tzdata table. Currently users cannot change this.
-
CLIPBOARD_LIMIT= 20¶ - Type
Limit for entries allowed in the clipboard. if (CLIPBOARD_LIMIT + 1)nth element is added then the last one is deleted from the clipboard.
-
BINARIES= {'gm': 'gm', 'mongo': 'mongo', 'mongodump': 'mongodump', 'mongorestore': 'mongorestore'}¶ - Type
Paths to external binaries.
-
THUMBOR_URL= None¶ - Type
Thumbor server address to process thumbnails. If None, XMM’s own system will be used.
-
THUMBOR_KEY= 'unsafe'¶ - Type
Encryption key to generate safe URLs for Thumbor. If XMM is whitelisted this can be ‘unsafe’ to not sign URLs.
-
TASK_SCHEDULES= {'sys_cleanup': {'schedule': <crontab: 1 1 * * * (m/h/d/dM/MY)>, 'task': 'xmm.tasks.datacleanup.DataCleanupTask'}, 'sys_licensecheck': {'schedule': <crontab: 0 1 * * * (m/h/d/dM/MY)>, 'task': 'xmm.tasks.licensecheck.LicenseCheckTask'}}¶ - Type
str[]
Import paths to Celery tasks classes that are available in the XMM.
-
TASK_IMPORTS= ['xmm.tasks.batchupdate.BatchUpdateTask', 'xmm.tasks.licensecheck.LicenseCheckTask']¶ - Type
str[]
List of Task classes that can be called but not created as Task object.
-
WEBSOCKET_CERT_FILE= None¶ - Type
Full path to the TLS/SSL certificate (usually a .pem file) to be used by the websocket service.
You may also set the WS_CERT_FILE environment variable.
-
WEBSOCKET_CERT_KEY= None¶ - Type
Full path to the TLS/SSL certificate private key file (usually a .pem or .key file) to be used by the websocket service.
You may also set the WS_CERT_KEY environment variable.
-
COMMANDS= ('xmm.core.management.commands.check', 'xmm.core.management.commands.scaffold')¶ - Type
str[]
Import paths of available commands for
manage.pyscript.
-
PIPELINE_READERS= ['xmm.pipeline.readers.LocalFileSystemReader']¶ - Type
str[]
Import paths for available data sources to use with imports.
-
PIPELINE_WRITERS= ['xmm.pipeline.writers.CSVWriter', 'xmm.pipeline.writers.ExcelWriter', 'xmm.pipeline.writers.JSONWriter', 'xmm.pipeline.writers.XMLWriter']¶ - Type
str[]
Import paths for available output formats for data exports.
-
SYSTEM_USER_SOFT_LIMIT= 0¶ - Type
Set a soft limit for the number of allowed users. If the number of users exceed this limit, the system sends an email. Set to None to deactivate the check.
-
SYSTEM_USER_SOFT_LIMIT_EMAIL= ''¶ - Type
Send user soft limit exceedance emails to this email address.
-
SYSTEM_BADGE_TEXT= None¶ - Type
Show a badge for this XMM deployment to clearly mark in which environment you’re currently working.
-
SYSTEM_BADGE_TEXT_LONG= None¶ - Type
Longer version for SYSTEM_BADGE_TEXT to be displayed in the XMM status bar at the bottom instead.
-
SYSTEM_BADGE_COLOR= '#f24f39'¶ - Type
Optionally specify a background color for this badge. Can be any valid CSS color, defaults to
#f24f39.Recommended colors are:
#308db9Masterdata Blue#f24f39Collections Red#209b94CMS Turquoise#4aa46aMedia Green#c29942Admin Yellow
-
ALLOW_DYNAMIC_TAGS= True¶ - Type
Allow creating tags on the fly in Tag input fields. Set to False to only allow selecting existing tags that can be created in the admin section.
-
LOGGING¶ - Type
Application logging configuration dict.
Full schema documentation available at the Python documentation.