Code

Opened 3 years ago

Closed 3 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

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 %}

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by anonymous

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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

comment:2 Changed 3 years ago by julien

  • Resolution set to invalid
  • Status changed from new to 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.