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 todbDB_NAME- sets Postgres database name - defauts torichyDB_USER- sets Postgres database user - defaults topostgresDB_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_URLto be fully functional.SENTRY_URL- URL to Sentry endpoint (DNS). Sentry is used if both this andSENTRY_ENABLEdirectives 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-DDformat taken as the epoch of historical coin prices.\*_CACHE_\*- cache related timeout - see: CachePRICES_CACHE_TIMEOUTINDEX_CACHE_TIMEOUTTRANSACTIONS_CACHE_TIMEOUTNEWS_CACHE_TIMEOUTPRICE_PERCENTAGE_CHANGE_CACHE_TIMEOUTITEM_CURRENT_PRICE_TIMEOUTSMA_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