Hi, I'm new to django and I was going through the polling tutorial when
I ran into this problem. It seems like django is not parsing the tags
in the template. This code is lifted right from the tutorial(I went all
the way through tutorial 4 so thats why the object is object instead of
poll).

{% if object_list %}
    <ul>
    {% for object in object_list %}
        <li>{{ object.question }}</li>
        <ul>
        (% for choice in object %)
                <li>{{ object.choice  }}</li>
        (% endfor %)
        </ul>
    {% endfor %}
    </ul>
{% else %}
    <p>No polls are available.</p>
{% endif %}

And it outputs:

    *  What's up?
          o (% for choice in object %)
            (% endfor %) Does this work?
    *
          o (% for choice in object %)
            (% endfor %) What do you think of Django?
    *
          o (% for choice in object %)
            (% endfor %)

I dont know why it would parse the first for loop and not the second,
please help!

Thanks, 

will


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to