I am trying to create a contents list using the following
sidebar_sub_contents.html.

{% for content in contents %}
    {% if content.link %}
        <li>
            <a href="{{ content.link }}">{{ content.name }}</a>
        </li>
    {% endif %}
    {% if content.list %}
        <ul>
        {% with content.list as contents %}
        {% include 'sidebar_sub_contents.html' %}
        {% endwith %}
        </ul>
    {% endif %}
{% endfor %}

The problem is that I get a maximum recursion runtime error.  Even if
I change the "if content.list" tag to a 'ifequal "0" "1"', I still get
a max recursion error, suggesting that the template language is
executed even if the conditions are not met.  This doesn't seem right.

I'm running python2.5 through mod_python on ubuntu (hardy heron), with
the latest django trunk (8752)

thanks

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

Reply via email to