Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

enumerate in django templte

{% for person in listlike_var %}
    {{ forloop.counter0 }} : {{ person.name }}
{% endfor %}
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #enumerate #django #templte
ADD COMMENT
Topic
Name
9+3 =