Opened 12 years ago

Closed 12 years ago

Last modified 12 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 by c.daniel.paradis@…, 12 years ago

Should have mentioned this is in the tutorial.

comment:2 by Aymeric Augustin, 12 years ago

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 by Aymeric Augustin, 12 years ago

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