risomt wrote:
> http://binarymanipulations.com:8157/polls/1/vote/ displays the Poll's
> title and all of the poll's choices correctly - start from there
I am not sure of how to start. I have been looking around with my views
and models and templates but as the novice I am, I haven't found
anything yet.
Should I post some other information? Or can you define how to "start
from there" more clearly?

> Sorry for the weak answer, but its pretty late.  I did notice an error
> with your form in poll_detail (http://binarymanipulations.com:8157/
> polls/1/) - <form action="/polls//vote/" method="post"> should be
> <form action="/polls/{{ poll.id }}/vote/" method="post">
I looked at that. My poll_detail.html is:
------
<h1>{{ poll.question }}</h1>

{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}

<form action="/polls/{{ poll.id }}/vote/" method="post">
{% 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>
-----

So to me it looks as if my form action <form action="/polls/{{ poll.id
}}/vote/" method="post"> is how it should be?

Thanks, Evan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [EMAIL PROTECTED]
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