dojango icon indicating copy to clipboard operation
dojango copied to clipboard

76 - Template tag set_dojango_context doesn't work anymore

Open klipstein opened this issue 13 years ago • 0 comments

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

klipstein avatar Nov 06 '11 13:11 klipstein