Hello,
Here it is the part of the documentation you are looking for:
http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext
This is an extract of the part that you are looking:
If you're using Django's render_to_response() shortcut to populate
a templa
Hi Jeremy,
I am a bit lost ... where do I apply that? Isn't that I just call the
variable name/dict key in the template?
Thanks
james
On Jul 19, 11:18 am, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On 7/18/07, james_027 <[EMAIL PROTECTED]> wrote:
> ...
>
> > the commonly use data will automati
On 7/18/07, james_027 <[EMAIL PROTECTED]> wrote:
...
> the commonly use data will automatically available, do I get it right?
>
Yes. Just keep in mind that you need to use RequestContext rather
than Context in order for context processors to be applied.
--~--~-~--~~~---
Hi,
As I understand context are data we can use in our templates, and the
purpose of context processor is instead of doing something like
c = Context({
'latest_poll_list': latest_poll_list,
})
or
return render_to_response('polls/index.html', {'latest_poll_list':
latest_poll_list})
4 matches
Mail list logo