Opened 3 years ago

Closed 3 years ago

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

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Should have mentioned this is in the tutorial.

comment:2 Changed 3 years ago by aaugustin

  • Resolution set to invalid
  • Status changed from new to closed

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 3 years ago by aaugustin

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