Closed GoogleCodeExporter closed 9 years ago
This is not a bug. If you’re using the render_to_response shortcut, just pass
it as
the context_instance keyword argument to render_to_response, like so:
return render_to_response('base.html', {'some_var': 'foo'},
context_instance=RequestContext(request))
Don't fogive about:
from django.template import RequestContext
If you’re using a generic view, you don’t have to do anything except define
the
TEMPLATE_CONTEXT_PROCESSORS setting; generic views use RequestContext by
default.
Original comment by osint...@gmail.com
on 21 Jun 2009 at 7:10
Original comment by m...@google.com
on 8 Jun 2010 at 12:30
Original issue reported on code.google.com by
osint...@gmail.com
on 12 Jun 2009 at 9:19