Settings#
Environment variables#
WDB_SOCKET_SERVER
- WDB server socket (part of WDB package)WDB_NO_BROWSER_AUTO_OPEN
- Do (not) open browser when debug kicks in (part of WDB package)GUNICORN_DEBUG
- enables debug log level for GunicornGUNICORN_RELOAD
- enables Gunicorn auto reloadDJANGO_DEBUG
- enables Django debug modeDB_HOST
- sets Postgres host - defaults todb
DB_NAME
- sets Postgres database name - defauts torichy
DB_USER
- sets Postgres database user - defaults topostgres
DB_PASSWORD
- sets Postgres database passwordNO_CELERY_FIXTURES
- disables loading celery fixturesBASE_URL
- app base URLDOMAIN
- domain(s) (separated by comma) the app runs at
Django settings#
App introduces a few custom settings properties.
COMMON#
MAX_PRECISION
- determines maximum precision of displayed values (prices) in the app (except coins)COINS_MAX_PRECISION
- determines float precision of displayed values (inc. percentages) for coinsSENTRY_ENABLE
- value"true"
enables Sentry mechanism (also requiresSENTRY_URL
to be fully functional.SENTRY_URL
- URL to Sentry endpoint (DNS). Sentry is used if both this andSENTRY_ENABLE
directives are configured correctly.
News#
NEWS_BLACKLIST
- a list of domains which are blacklisted from news downloadingNEWS_FEED
- an URL (pattern) to RSS feed which is later parsed for item newsNEWS_PRUNE_THRESHOLD_DAYS
- number of days when news record expires and gets deleted by celery task
Charts#
CHART_COLORS
- a list of colors which cycle in chartsCOLOR_GREEN
- green (positive) color for chartsRED_GREEN
- red (negative) color for charts
Coins#
COIN_EPOCH
- a date inYYYY-MM-DD
format taken as the epoch of historical coin prices.\*_CACHE_\*
- cache related timeout - see: CachePRICES_CACHE_TIMEOUT
INDEX_CACHE_TIMEOUT
TRANSACTIONS_CACHE_TIMEOUT
NEWS_CACHE_TIMEOUT
PRICE_PERCENTAGE_CHANGE_CACHE_TIMEOUT
ITEM_CURRENT_PRICE_TIMEOUT
SMA_TIMEOUT
OVERVIEW_COINS_HISTORY
- number of historical records (in days) for overview chart
Indexes#
OVERVIEW_INDEXES_HISTORY
- number of historical records (in days) for overview chart