Using the built-in comment tags in Django will allow you to comment out any text and markup between the opening {% comment %} tag and closing {% endcomment %} tag.

Note that comment tags cannot be nested.

{% comment %}
    <span>This will be commented out</span>
{% endcomment %}