Opened 12 years ago

Closed 12 years ago

#18749 closed Cleanup/optimization (invalid)

Syntax error in Tutorial 4

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

There is a syntax error in last line of Dev Tutorial 4.

Is:
<a href="{% url 'poll_detail' poll.id %}">Vote again?</a>

Should be:
<a href="{% url poll_detail poll.id %}">Vote again?</a>

Fix: (no quotes around poll_detail)
From: https://docs.djangoproject.com/en/dev/intro/tutorial04/

Change History (2)

comment:1 by dharol@…, 12 years ago

comment:2 by Alex Gaynor, 12 years ago

Resolution: invalid
Status: newclosed

Hi this code is correct, the problem you're running into is because you're using the docs for the development version of django, but using an earlier version fo Django (1.4). Thanks for taking the time to report this though!

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