Opened 4 years ago

Closed 3 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


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

<a href="{% url 'poll_detail' %}">Vote again?</a>

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

Fix: (no quotes around poll_detail)

Change History (2)

comment:1 Changed 3 years ago by dharol@…

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

comment:2 Changed 3 years ago by Alex

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

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