On Sun, Nov 23, 2008 at 6:31 AM, dash86no <[EMAIL PROTECTED]> wrote:

> So what passes the poll context variable to the template? This isn't
> done explicitly, right? How is the variable name determined?

It's explicitly passed.  There are some variables that are populated
implicitly based on the specific context, but in this case, 'poll' is
something that would be explicitly set.

Refer to the page you linked to earlier:

http://docs.djangoproject.com/en/dev/intro/tutorial03/#write-views-that-actually-do-something

That section explains how views work, and how they pass things to the
template context.


-- 
---
David Zhou
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to