Re: New to Django; walking through djangoproject tutorial; can't get poll to work

2012-12-21 Thread Deron
Sorry for my delayed response. I didn't receive a notification that you had 
replied for some reason. Anyway, you're correct. That's exactly what the 
issue was and now I feel dumb.

Thank you very much!

On Wednesday, December 19, 2012 12:39:41 AM UTC-5, Jeff Tchang wrote:
>
> My first guess is that 
>
> {% for choice in poll.choice_set.all %} 
>
> is empty. So you have no choices attached to the poll. You can verify 
> this by looking at the generated HTML source and seeing if you have 
> any radio buttons at all. Since you said you didn't that is my guess. 
>
> I didn't go back and look at the tutorial but try creating some 
> choices for the poll. 
>
> -Jeff 
>
> On Tue, Dec 18, 2012 at 7:56 PM, Deron > 
> wrote: 
> > Hi, 
> > 
> > First post here. I'm extremely new to Django and I have been fumbling my 
> way 
> > through the DjangoProject "poll" app tutorial for a couple weeks now. I 
> > understand a lot of what's going on, but a lot of things are completely 
> lost 
> > on me as well. That said, I'm to the point of actually using the poll 
> app. 
> > I've created a view so you can view the poll, select a choice and then 
> click 
> > "vote." Problem is, when I view the page (/polls/1/) I see my heading 
> which 
> > is "What's Up?" and I see a "vote" input button, but no radio button. 
> I'm 
> > not exactly sure why it's not showing up. Anyone want to take a shot in 
> the 
> > dark on this one? Here's my "detail.html" view (copied straight from the 
> > tutorial): 
> > 
> > {{ poll.question }} 
> > {% if error_message %}{{ error_message }}{% 
> endif %} 
> >  
> > {% csrf_token %} 
> > {% for choice in poll.choice_set.all %} 
> >  > value="{{ choice.id }}" /> 
> > {{ choice.choice 
> }} > /> 
> > {% endfor %} 
> >  
> >  
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Django users" group. 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msg/django-users/-/DtV-YM6VU44J. 
> > To post to this group, send email to 
> > django...@googlegroups.com. 
>
> > To unsubscribe from this group, send email to 
> > django-users...@googlegroups.com . 
> > For more options, visit this group at 
> > http://groups.google.com/group/django-users?hl=en. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/ThbLoEpqLPIJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



New to Django; walking through djangoproject tutorial; can't get poll to work

2012-12-18 Thread Deron
Hi,

First post here. I'm extremely new to Django and I have been fumbling my 
way through the DjangoProject "poll" app tutorial for a couple weeks now. I 
understand a lot of what's going on, but a lot of things are completely 
lost on me as well. That said, I'm to the point of actually using the poll 
app. I've created a view so you can view the poll, select a choice and then 
click "vote." Problem is, when I view the page (/polls/1/) I see my heading 
which is "What's Up?" and I see a "vote" input button, but no radio button. 
I'm not exactly sure why it's not showing up. Anyone want to take a shot in 
the dark on this one? Here's my "detail.html" view (copied straight from 
the tutorial):

*{{ poll.question }}
{% if error_message %}{{ error_message }}{% endif %}

{% csrf_token %}
{% for choice in poll.choice_set.all %}

{{ choice.choice }}
{% endfor %}

*

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/DtV-YM6VU44J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.