Skip first item in list

Is it possible if the django template tags skip the first item in the list when executing a for loop? For example, I want to start with element 1 instead of 0.

+5
source share
2 answers

built-in slice filter

{{ qs|slice:"1:" }}
+9
source

You can, for example, do:

{% if not forloop.first %}
    ...
{% endif %}
+4
source

All Articles