Context processors#
Custom template context processors registered in
TEMPLATES["OPTIONS"]["context_processors"] in
Settings. They expose a handful of values to
every server-rendered template.
meta#
Surfaces application metadata. Currently only last_price_update
– the datetime of the most recent share / coin price refresh.
Rendered as the tooltip on the application name in the top bar.
settings#
A curated subset of Django settings made available to templates as
the settings dict: CHART_COLORS, VERSION,
MAX_PRECISION, COINS_MAX_PRECISION. Templates do not
have unrestricted access to Django settings – only these.
search_form#
Exposes a fresh SearchForm instance under
the name search_form so the top-bar / sidebar search renders on
every page without each view having to pass it explicitly.
all_symbols#
Exposes the full list of Item symbols
under the name all_symbols – consumed by the search-bar
autocomplete.
Note
Currently runs an uncached query on every request. The source
carries a TODO to cache and invalidate on item add / remove.