I'm getting error: Invalid block tag: 'endblock', expected 'endif' in tempate:
{% extends "base.html" %} {% block title %}{% endblock %} {% block header %} <h1>Header</h1> {% endblock %} {% block content %} {% if wiwto_category_name|length > 1 %} {% for category in wiwto_category %} <li> <h2><a href="{{ category.href }}">{{ category.name }}</a></h2> </li> {% endfor %} {% else %} <p>List is empty.</p> {% endif% } {% endblock %} #On this line is the error {% block footer %} {% endblock %} Anyone knows, where is the problem? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.