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는 리스트처리가 안됨