Opened 15 years ago

Closed 15 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: no UI/UX: no

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 Tim Graham 15 years ago.
typo

Download all attachments as: .zip

Change History (3)

by Tim Graham, 15 years ago

Attachment: 12958.diff added

typo

comment:1 by Tim Graham, 15 years ago

Has patch: set
Keywords: typo added
Triage Stage: UnreviewedReady for checkin

comment:2 by jbronn, 15 years ago

Resolution: fixed
Status: newclosed

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

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