how to split the string in django template?

前端 未结 3 1686
轻奢々
轻奢々 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

    For extract character string, use filter cut:

    Phone
    

    this removes the scripts from the string.

提交回复
热议问题