Django模板template(html)中如何使用注释comment
单行注释:
使用 {# #} 单行注释,例如:
{# Everything you see here is a comment. It won't show up in the HTML output. #}
多行注释:
{% comment %} this is a comment {% endcomment %}
Ignores everything between {% comment %} and {% endcomment %}
官方文档解释: