Opened 16 years ago
Closed 16 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)
Change History (3)
by , 16 years ago
| Attachment: | 12958.diff added |
|---|
comment:1 by , 16 years ago
| Has patch: | set |
|---|---|
| Keywords: | typo added |
| Triage Stage: | Unreviewed → Ready for checkin |
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
typo