Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

76 - Template tag set_dojango_context doesn't work anymore #75

Open
klipstein opened this issue Nov 6, 2011 · 0 comments
Open

76 - Template tag set_dojango_context doesn't work anymore #75

klipstein opened this issue Nov 6, 2011 · 0 comments

Comments

@klipstein
Copy link
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant