Django Built-in template tags and filters for문
2021. 2. 4. 22:56ㆍ파이썬/Django
Variable Description
forloop.counter The current iteration of the loop (1-indexed)
forloop.counter0 The current iteration of the loop (0-indexed)
forloop.revcounter The number of iterations from the end of the loop (1-indexed)
forloop.revcounter0 The number of iterations from the end of the loop (0-indexed)
forloop.first True if this is the first time through the loop
forloop.last True if this is the last time through the loop
forloop.parentloop For nested loops, this is the loop surrounding the current one
'파이썬 > Django' 카테고리의 다른 글
Django Admin 함수 (0) | 2021.02.05 |
---|---|
Django Admin 템플릿에서 static 사용시 주의점 (0) | 2021.02.04 |
Djang Admin widget 셋팅 (0) | 2021.02.04 |
Django Model ForeignKey (0) | 2021.01.31 |
Cannot assign "25": "Box.image" must be a "Image" instance. (0) | 2021.01.31 |