1{% for o in some_list %}
2 <tr class="{% cycle rowvalue1 rowvalue2 %}">
3 ...
4 </tr>
5{% endfor %}
6
1{% if athlete_list %}
2 Number of athletes: {{ athlete_list|length }}
3{% elif athlete_in_locker_room_list %}
4 Athletes should be out of the locker room soon!
5{% else %}
6 No athletes.
7{% endif %}
8
1if you want to use loop in html file django app then you can you cycle
2in my case:
3data-wow-delay="{% cycle 0.4 0.8 1.2 1.6 %}s">
4
5{{ cycle "use your loop function here" }}
6
7#bkhatti11 #bilaltraveller #azeemlab