Django layui {{}} conflict resolution

layui the table need to use custom template {{}}, and Django but the conflict {}, {} {} layui for parsing failure.

Solution: Starting Django 1.5, supports {% verbatim%} tag (verbatim means (full) literally, meaning as it does not move), the contents does not render the Django verbatim package label.

The layui {} {} used by

{% verbatim %}{% endverbatim %}

Wrap it.

 

Guess you like

Origin www.cnblogs.com/zhangxj/p/11243303.html