I am referring to Tutorial number 3. When editing the 'polls/
index.html' file, the tutorial says to input:
{% 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 input exactly this (literally copied and pasted directly from the
tutorial page).
I got an error saying that {% else%} was an incomplete block!
The only way to correct this was to make it (% else %).
When I finished that, it then gave me an error saying that {% endif %}
was an incomplete block!
Again, the only way to correct was (% endif %)
Which way is correct????
(% else %) OR {% else %}
Cheers
Grant
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.