Context Processors

Download django eBook

Remarks

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

Stats

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

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook