#18892 closed Bug (invalid)
NoReverseMatch Error in templates
Reported by: | 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 , 12 years ago
comment:2 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → 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 by , 12 years ago
Also -- this is already mentioned in the tutorial, an the bottom of part 3.
Should have mentioned this is in the tutorial.