django template index

선디·2021년 10월 5일
0
{% for artstory in artstory_list %}
	{{forloop.counter}}
{% endfor %}

forloop.counter를 사용하면 인덱스를 출력할수있다.

0개의 댓글