Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#18892 closed Bug (invalid)

NoReverseMatch Error in templates

Reported by: c.daniel.paradis@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

In templates (details.html and results.html)

<form action="{% url 'polls.views.vote' poll.id %}" method="post">

and

<a href="{% url 'polls.views.detail' poll.id %}">Vote again?</a>

should be

<form action="{% url polls.views.vote poll.id %}" method="post">

and

<a href="{% url polls.views.detail poll.id %}">Vote again?</a>

(quotes removed)

Change History (3)

comment:1 Changed 4 years ago by c.daniel.paradis@…

Should have mentioned this is in the tutorial.

comment:2 Changed 4 years ago by Aymeric Augustin

Resolution: invalid
Status: newclosed

You're using version 1.4 or earlier of Django, but you're reading the docs for the development version, which is going to become 1.5.

The behavior of the {% url %} tag changes in Django 1.5.

comment:3 Changed 4 years ago by Aymeric Augustin

Also -- this is already mentioned in the tutorial, an the bottom of part 3.

Note: See TracTickets for help on using tickets.
Back to Top