Adding context within Django templates

The 'right' way to add context to a django template is to go to its view and update the context data. However, this can be a pain, particularly when you have content that you want to add across a significant number of templates. Things like special items in your left or right columns that need to appear in lots of pages or addenda where you are adding more context to an application template that you didn't write.

In these cases the template tags mechanism can easily be used to add the context you need within the template itself.


There are currently no comments

New Comment


required (not published)


Australia: 07 3103 2894

International: +61 410 545 357


RSS / Atom