You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Original link: http://code.google.com/p/dojango/issues/detail?id=76
The text was updated successfully, but these errors were encountered: