Horizon Context Processors

Context processors used by Horizon.

horizon.context_processors.horizon(request)[source]

The main Horizon context processor. Required for Horizon to function.

It adds the Horizon config to the context as well as setting the names True and False in the context to their boolean equivalents for convenience.

Warning

Don’t put API calls in context processors; they will be called once for each template/template fragment which takes context that is used to render the complete output.

Previous topic

Horizon Middleware

Next topic

Horizon Decorators

This Page