AngularJS with Django - Conflicting template tags

前端 未结 12 2256
南笙
南笙 2020-11-22 13:39

I want to use AngularJS with Django however they both use {{ }} as their template tags. Is there an easy way to change one of the two to use some other custom

12条回答
  •  -上瘾入骨i
    2020-11-22 14:31

    You can tell Django to output {{ and }}, as well as other reserved template strings by using the {% templatetag %} tag.

    For instance, using {% templatetag openvariable %} would output {{.

提交回复
热议问题