Settings - List of all settings¶
This document will list all settings used by trunk player. The settings are read from the base settings file trunk_player/settings.py
and also the local file you can override trunk_player/settings_local.py
These include settings from the base Django code. Complete list from Django These will be prefixed with a [D], Settings for 3rd party django apps will be prefixed with [D3]
SITE_TITLE¶
This value will be used for html page titles.
SECRET_KEY¶
[D] Django secret key. Used by the system for all encoding and encrypting of values. Very important you change this to your own random value
DEBUG¶
[D] When DEUG is True Djago will display debug messages for error on the web page. You do not want this set on an open site. This can expose sensitive data to users.
ALLOWED_HOSTS¶
[D] This is a list of host names the web page can be accessed in, you need to set this domain name(s) of your site.
DATABASES¶
[D] Configuration data for your database connection
SITE_EMAIL¶
Email address emails will come from
DEFAULT_FROM_EMAIL¶
Email address emails will come from
AUDIO_URL_BASE¶
URL where your audio files are accessiable at
ANONYMOUS_TIME¶
Time in minutes that an anonymous (non logged in) can view into the past
ACCESS_TG_RESTRICT¶
If set to true all talkgroups are restricted and each user needs to be explicitly granted permission in the talkgroupaccess table
GOOGLE_ANALYTICS_PROPERTY_ID¶
Google ID used for analytics
TWITTER_ACTIVE¶
If set to true it will display a twitter feed to the right
TWITTER_LIST_URL
the url for the feed
LOGIN_REDIRECT_URL¶
[D3] Where the user is redirected after they login
Note
The settings below this point will most likely not need to be edited
JS_SETTINGS¶
Used to allow the page javascript visibility into the settings in the list
JS_SETTINGS¶
Used to allow the django HTML template engine visibility into the settings in the list
ALLOW_ANONYMOUS¶
Not used for anything
RADIO_DEFAULT_UNIT_AGENCY¶
DB ID of the default acency when a new unit is added * This is defaulted to 0 which is invalid in mysql
AMAZON_ADDS¶
If set to true the site will display amazons ads on the right hand side
Additinal settings for this are :
AMAZON_AD_TRACKING_ID
Your Amazon ID
AMAZON_AD_LINK_ID
ID for this site
AMAZON_AD_EMPHASIZE_CATEGORIES
Categories to display
AMAZON_AD_FALL_BACK_SEARCH
Search terms
ACCOUNT_AUTHENTICATION_METHOD¶
[D3] Default username setup
ACCOUNT_EMAIL_REQUIRED¶
[D3] Require email address
BASE_DIR¶
[D] Base directory the project is installed in.
LOGIN_URL¶
[D] The url django will redirect users who are not looged in when a page requires login.
INSTALLED_APPS¶
[D] List of the django apps that make up the project.
MIDDLEWARE_CLASSES¶
[D] List of middleware code that is run in the project
ROOT_URLCONF¶
[D] Where the primary URL list comes from
TEMPLATES¶
[D] Config values for the HTML template system
WSGI_APPLICATION¶
[D] Location of the config file for the primary web setup
AUTHENTICATION_BACKENDS¶
[D] How users are authenticated to django
AUTH_PASSWORD_VALIDATORS¶
[D] How password are validated
LANGUAGE_CODE¶
[D] Language used
USE_I18N¶
[D] Use Language code
USE_L10N¶
[D] localized formatting
USE_TZ¶
[D] Use localtime zones
SECURE_PROXY_SSL_HEADER¶
[D] Used to make sure HTTPS connections are set
STATIC_URL¶
[D] URL Prefix for static content
STATIC_ROOT¶
[D] Directory location of static files
REST_FRAMEWORK¶
[D] Config for the REST (API) framework
MEDIA_URL¶
[D] URL prefix for media data
MEDIA_URL¶
[D] Directory location of media files
CHANNEL_LAYERS¶
[D] Config of the channel app. This is where the websock data is accessed from.
CACHES¶
[D] Config of the local cache
SITE_ID¶
[D] ID of this site
USE_RAW_ID_FIELDS¶
[D] For very large systems, the admin page may load better with raw id fields
SOCIALACCOUNT_PROVIDERS¶
[D3] Config settings to allow google authentication