Answers for "counter in django template"

1

counter in django template

{{ forloop.counter }}   ->  The current iteration of the loop (1-indexed)
{{ forloop.counter0 }}  ->  The current iteration of the loop (0-indexed)
Posted by: Guest on January-10-2022

Python Answers by Framework

Browse Popular Code Answers by Language