Opened 4 years ago

Closed 4 years ago

#19359 closed Bug (invalid)

Small error in the tutorial

Reported by: rkothari88@… 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

At: https://docs.djangoproject.com/en/dev/intro/tutorial03/#namespacing-url-names

Last step says:

<li><a href="{% url 'polls:detail' poll.id %}">{{ poll.question }}</a></li>

This doesn't seem to work. Without the quotes around polls:detail however, it seems to work as expected.

Change History (1)

comment:1 Changed 4 years ago by Preston Holmes

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: invalid
Status: newclosed

You are most likely using a released version of Django while using the development version of the docs - use the widget at the bottom right of the docs widget to switch to the matching version of the docs - and note that this part of the tutorial was using a deprecated (on-the-way-out) use of the url tag.

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