Django treats {{ var }} as some variable in its template. How can I escape {{ var }} or {{ or }} such that django does no
{{ var }}
{{
}}
Django 1.5 introduced {% verbatim %} template tag. It stops template from parsing contents of this tag:
{% verbatim %} {{ var }} {% endverbatim %}
will be rendered as: