Also next time please post exceptions as a text. Images are really hard to
read specially on mobile device.

ma 7. toukokuuta 2018 klo 20.34 Avitab Ayan Sarmah <avitabay...@gmail.com>
kirjoitti:

> i got the error thank you. It was a simple error i forgot to put "<"
> before vote
>
> On Monday, May 7, 2018 at 10:55:51 PM UTC+5:30, Avitab Ayan Sarmah wrote:
>>
>> polls/urls.py:
>>
>> from django.urls import path
>>
>> from . import views
>>
>> app_name = 'polls'
>> urlpatterns = [
>> # ex: /polls/
>> path('', views.index, name='index'),
>> # ex: /polls/5/
>> path('<int:question_id>/', views.detail, name='detail'),
>> #ex: /polls/5/results/
>> path('<int:question_id>/results/', views.results, name='results'),
>> #ex: /polls/5/vote/
>> path('int:question_id>/vote/', views.vote, name='vote'),
>> ]
>>
>>
>> On Monday, May 7, 2018 at 10:54:16 PM UTC+5:30, Dylan Reinhold wrote:
>>>
>>> Share your polls/url.py it's saying it cant find the url named "vote" in
>>> your polls.
>>>
>>> Dylan
>>>
>>> On Mon, May 7, 2018 at 10:14 AM, Avitab Ayan Sarmah <avita...@gmail.com>
>>> wrote:
>>>
>>>> Detail.html:
>>>>
>>>> <h1>{{ question.question_text }}</h1>
>>>>
>>>> {% if error_message %}<p><strong>{{ error_message }}</strong></p>{%
>>>> endif %}
>>>>
>>>> <form action="{% url 'polls:vote' question.id %}" method="post">
>>>> {% csrf_token %}
>>>> {% for choice in question.choice_set.all %}
>>>>   <input type="radio" name="choice" id="choice{{ forloop.counter }}"
>>>> value="{{ choice.id }}" />
>>>>   <label for="choice{{ forloop.counter }}">{{ choice.choice_text }}
>>>> </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 unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users...@googlegroups.com.
>>>> To post to this group, send email to django...@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/aab94309-a65f-49ec-bd4d-bb07bf5457a7%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/aab94309-a65f-49ec-bd4d-bb07bf5457a7%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6176e606-7dbe-4a39-bd05-fc879482663c%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/6176e606-7dbe-4a39-bd05-fc879482663c%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91oekr%3DRnKmb6ZCDpWgL5iBH5KpDmEFB4Jv%2BVVihEaRaJzg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to