Answers for "template for loop iteration number"

2

template for loop iteration number

{% for item in item_list %}
    {{ forloop.counter }} # starting index 1
    {{ forloop.counter0 }} # starting index 0

    # do your stuff
{% endfor %}
Posted by: Guest on March-19-2020

Code answers related to "template for loop iteration number"

Browse Popular Code Answers by Language