Context Processors

Download django eBook


Use context processors to add variables that are accessible anywhere in your templates.

Specify a function, or functions that return dicts of the variables you want, then add those functions to TEMPLATE_CONTEXT_PROCESSORS.

Related Examples


202 Contributors: 4
Friday, July 22, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial:

Download eBook