Django TemplateSyntax错误:无效的块标记:'否则',预期'空'或者' endfor' - 包括代码

时间:2015-10-23 22:12:11

标签: python django django-templates

这是我的代码。出于某种原因,我收到了无效的块标记:'其他',预期'空'或者' endfor'。任何人都知道我做错了什么?

{% for x in x.objects.all() %}
    {% csrf_token %}
    {% if x.left %}
        {% if x.active %}
            {% if x.round_1 %}
               {% if x.player.active %}
               {% else %}
               {% endif %}
            {% else %}
            {% endif %}
        {% else %}
        {% endif %}
   {% else %}
        {% if x.active %}
            {% if x.round_1 %}
               {% if x.player.active %}
               {% else %}
               {% endif %}
            {% else %}
            {% endif %}
        {% else %}
        {% endif %}
   {% endif %}
{% endfor %}

0 个答案:

没有答案