I would like to comment this with a line
{% if something.property %}
<table>
<tr>...
{% # this is a comment %}
{% if something.property %}
<table>
<tr>...
I would like to comment this with a line
{% if something.property %}
<table>
<tr>...
{% # this is a comment %}
{% if something.property %}
<table>
<tr>...
http://www.google.com/search?q=django+template+comment
First result: http://docs.djangoproject.com/en/dev/ref/templates/builtins/
{% comment %} this is a comment {% endcomment %}
Van Gale and mipadi's answers can be found in the second result: http://docs.djangoproject.com/en/dev/topics/templates/
As answer by Miles, {% comment %}...{% endcomment %}
is used for multi-line comments, but you can also comment out text on the same line like this:
{# some text #}
Using the {# #}
notation, like so:
{# Everything you see here is a comment. It won't show up in the HTML output. #}