Django - skip first row of array Django - skip first row of array arrays arrays

Django - skip first row of array


{% for a in array %}  {% if not forloop.first %}    {{ a }}  {% endif %}{% endfor %}

There is of course forloop.last for the last iteration as well.

They are all listed in the Django reference.


{% for a in array %}{% if forloop.counter != 1 %}    {{ a }}{% endif %}{% endfor %}