how to split the string in django template?

前端 未结 3 1685
轻奢々
轻奢々 2020-12-10 05:17

i am trying to split the string in template using custom template filter. But i got an error

    TemplateSyntaxError at /job/16/
\'for\' statements should u         


        
3条回答
  •  清歌不尽
    2020-12-10 06:13

    Skills

    {% with form.instance.skills|split:"," as skills %} {% for skill in skills %} {{ skill }}
    {% endfor %} {% endwith %}

提交回复
热议问题