#18705: Tutorial - URL Template Tag Error
-------------------------------+--------------------
Reporter: max@… | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.4
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
I'm working through the tutorial, and on the following page:
https://docs.djangoproject.com/en/dev/intro/tutorial03/
there is an error in the code in the final paragraph. We are instructed
to use the following line to make use of the URL template helper:
<li><a href="{% url 'polls.views.detail' poll.id %}">{{ poll.question
}}</a></li>
However, the single quotes around 'polls.views.detail' result in a 'No
Reverse Match' error. I found that removing the single quotes, giving:
<li><a href="{% url polls.views.detail poll.id %}">{{ poll.question
}}</a></li>
worked without producing the error.
--
Ticket URL: <https://code.djangoproject.com/ticket/18705>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.