How to escape {{ or }} in django template?

前端 未结 10 1921
慢半拍i
慢半拍i 2020-12-01 04:17

Django treats {{ var }} as some variable in its template. How can I escape {{ var }} or {{ or }} such that django does no

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-01 04:38

    This template tag (designed for use with jQuery Templates) might do the trick. It let's you wrap content you don't want Django to interpret as variables with a template tag.

提交回复
热议问题