Settings

All Trionyx base settings

trionyx.settings.gettext_noop(s)[source]

Return same string, Dummy function to find translatable strings with makemessages

trionyx.settings.get_env_var(setting: str, default: Optional[Any] = None, configs: Dict[str, Any] = {'DEBUG': True, 'SECRET_KEY': 'Not a secret'}) → Any[source]

Get environment variable from the environment json file

Default environment file is environment.json in the root of project, Other file path can be set with the TRIONYX_CONFIG environment variable

trionyx.settings.get_watson_search_config(language)[source]

Get watson language config, default to pg_catalog.english for not supported language

List of supported languages can be found on https://github.com/etianen/django-watson/wiki/Language-support#language-support

trionyx.settings.LOGIN_EXEMPT_URLS = ['^static', '^(api|openapi)', '^basic-auth']

A list of urls that dont require a login

trionyx.settings.TX_APP_NAME = 'Trionyx'

Full application name

trionyx.settings.TX_LOGO_NAME_START = 'Tri'

The first characters of the name that are bold

trionyx.settings.TX_LOGO_NAME_END = 'onyx'

The rest of the characters

trionyx.settings.TX_LOGO_NAME_SMALL_START = 'T'

The first character or characters of the small logo that is bold

trionyx.settings.TX_LOGO_NAME_SMALL_END = 'X'

The last character or characters of the small logo that is normal

trionyx.settings.TX_THEME_COLOR = 'purple'

The theme skin color (header). Aviable colors: blue, yellow, green, purple, red, black. All colors have a light version blue-light

trionyx.settings.TX_COMPANY_NAME = 'Trionyx'

Company name

trionyx.settings.TX_COMPANY_ADDRESS_LINES = []

Company address lines

trionyx.settings.TX_COMPANY_TELEPHONE = ''

Company telephone number

trionyx.settings.TX_COMPANY_WEBSITE = ''

Company website address

trionyx.settings.TX_COMPANY_EMAIL = ''

Company email address

trionyx.settings.TX_DISABLE_AUDITLOG = False

Disable auditlog

trionyx.settings.TX_DISABLE_API = False

Diable API

trionyx.settings.TX_DEFAULT_DASHBOARD()[source]

Return default dashboard

trionyx.settings.TX_MODEL_OVERWRITES = {}

Config to overwrite models, its a dict where the key is the original app_label.model_name and value is the new one.

TX_MODEL_OVERWRITES = {
    'trionyx.User': 'local.User',
}
trionyx.settings.TX_MODEL_CONFIGS = {}

Dict with configs for non Trionyx model, example:

TX_MODEL_CONFIGS = {
    'auth.group': {
        'list_default_fields': ['name'],
        'disable_search_index': False,
    }
}
trionyx.settings.TX_DB_LOG_LEVEL = 30

The DB log level for logging

trionyx.settings.TX_CHANGELOG_HASHTAG_URL = None

Url to convert all hastags to example: https://github.com/krukas/Trionyx/issues/{tag}

trionyx.settings.TX_SHOW_CHANGELOG_NEW_VERSION = True

Show changelog dialog with new version

Show footer