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 <dsizemor...@gmail.com> 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): > > <h1>{{ poll.question }}</h1> > {% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %} > <form action="/polls/{{ poll.id }}/vote/" method="post"> > {% csrf_token %} > {% for choice in poll.choice_set.all %} > <input type="radio" name="choice" id="choice{{ forloop.counter }}" > value="{{ choice.id }}" /> > <label for="choice{{ forloop.counter }}">{{ choice.choice }}</label><br > /> > {% endfor %} > <input type="submit" value="Vote" /> > </form> > > -- > 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. -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.