You can do it with iftag in Django 1.2
{% for blip in blah %}
{% if forloop.counter > 5 %}
{
{% endif %}
{% endfor %}
If you are still using an earlier version of Django, you can check the smart if tag on djangosnippets: http://djangosnippets.org/snippets/1350/ p>
source
share