Transfer from https://www.cnblogs.com/dayouzi/p/10154815.html
In Django template language written in HTML which can not use this method comments, such comments actually still valid
<!--{% haha %}-->
The first uses a template tag {% comment%} Note, this is the comment block
{% comment %} {%haha%}
{% endcomment %}
The second is to use the # sign comments, this is a single line single line comment
{#% haha %#}