Opened 7 years ago

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

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by Tim Graham

Attachment: 12958.diff added

typo

comment:1 Changed 7 years ago by Tim Graham

Has patch: set
Keywords: typo added
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedReady for checkin

comment:2 Changed 7 years ago by jbronn

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