Could not parse the remainder: '['a','b','c','d']' from '['a','b','c','d']'
2021. 1. 16. 16:38ㆍ파이썬/Django
{% with lists = ['a','b','c','d'] %}
{% for list in lists %}
{{ list }}{{ forloop.counter|add:1}}
{% endfor %}
{% endwith%}
with는 리스트처리가 안됨
'파이썬 > Django' 카테고리의 다른 글
템플릿 forloop.counter 사용 (0) | 2021.01.16 |
---|---|
'with' expected at least one variable assignment (0) | 2021.01.16 |
'Manager' object is not callable (0) | 2021.01.16 |
gantt() got an unexpected keyword argument 'id'Request Method: GETRequest URL: http://localhost/gantt/gantt/3 (0) | 2021.01.16 |
The current path, gantt/gantt/, didn't match any of these. (0) | 2021.01.16 |