klipstein/dojango — Issue #75: 76 - Template tag set_dojango_context doesn't work anymore 
Author: klipstein
Created: 2011-11-06 13:32:53+00:00
State: open

What steps will reproduce the problem?
1. Upgrade Django to at least r15304
2. In your template include "dojango/include.html"

What is the expected output? What do you see instead?
DOJANGO variable is not available in context outside dojango/include.html as it used to be. So if in my base tamplete I got {% include 'dojango/include.html' %} I cannot do <body class="{{DOJANGO.THEME}}"> etc.

What version of the product are you using? On what operating system?
Dojango trunk, Django r15304, python2.7

Please provide any additional information below.

Ithink this change can be a reason http://code.djangoproject.com/changeset/14922

Little explanation: RequestContext works as a stack. If you modify the context inside custom template tag, than the new dictionary is added on top of context stack. After template tag is rendered this dictionary is pop'ed from the stack.

Original link: http://code.google.com/p/dojango/issues/detail?id=76