Opened 13 years ago
Closed 13 years ago
#16934 closed Uncategorized (invalid)
Tutorial 3: error in html editing
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In the section of tutorial 3 where we edit a new html file with:
{% 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 %}
I kept getting an error saying that the {% else %} statement was an invalid block.
I believe that it is supposed to be (% else %) as opposed to {% else %}
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
The tutorial appears to be correct. Perhaps you have a typo or something missing in your own code. In any case, please do not use Trac for posting support questions -- instead use the django-users mailing list: http://groups.google.com/group/django-users
Please do reopen this ticket if it appears that there is an actual error in the tutorial.
If someone could please respond to this as soon as possible it would be greatly appreciated