Opened 7 years ago

Closed 7 years ago

#16934 closed Uncategorized (invalid)

Tutorial 3: error in html editing

Reported by: humphries.grant@… 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


In the section of tutorial 3 where we edit a new html file with:
{% if latest_poll_list %}

{% for poll in latest_poll_list %}

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

{% endfor %}

{% 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 Changed 7 years ago by anonymous

If someone could please respond to this as soon as possible it would be greatly appreciated

comment:2 Changed 7 years ago by Julien Phalip

Resolution: invalid
Status: newclosed

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:

Please do reopen this ticket if it appears that there is an actual error in the tutorial.

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