Opened 6 years ago

Closed 6 years ago

#12958 closed (fixed)

Typo in code sample

Reported by: mitchf Owned by: nobody
Component: Documentation Version: 1.1
Severity: Keywords: typo
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

URL: http://docs.djangoproject.com/en/dev/intro/tutorial03/#intro-tutorial03 (Section: Write views that actually do something)

Sample code for [template_dir}/polls/index.html shows:
{% if latest_poll_list %}

<ul>
{% for poll in latest_poll_list %}

<li><a href="/polls/{{ poll.id }}/">{{ poll.question }}</a><</li>

{% endfor %}
</ul>

{% else %}

<p>No polls are available.</p>

{% endif %}

Should be:
{% if latest_poll_list %}

<ul>
{% for poll in latest_poll_list %}

<li><a href="/polls/{{ poll.id }}/">{{ poll.question }}</a></li>

{% endfor %}
</ul>

{% else %}

<p>No polls are available.</p>

{% endif %}

"</li>" vs. "<</li>"

Attachments (1)

12958.diff (512 bytes) - added by timo 6 years ago.
typo

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by timo

typo

comment:1 Changed 6 years ago by timo

  • Has patch set
  • Keywords typo added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 6 years ago by jbronn

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

(In [12588]) Fixed #12958 -- Fixed typo I introduced in r12527. Thanks, mitchf.

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