counter in django template

103

counter in django template -

{{ forloop.counter }}   ->  The current iteration of the loop (1-indexed)
{{ forloop.counter0 }}  ->  The current iteration of the loop (0-indexed)

Comments

Submit
0 Comments