Make django not to process commented out html -
this question has answer here:
- how put comments in django templates 4 answers
i developing website using django. added link element yet create view it.
but django doesn't let me test changes until finish writing view. issues noreversematch
error. tried commenting out part of html using these <!-- xxxx -->
still django issues same error.
how can comment out html djano won't process it.
surround parts of template template comment tag, , django ignore it:
{# <a href="{% url('does-not-exist') %}">foo</a> #}
in text editors aware of django templates, can hit ctrl+/ comment out templates.
Comments
Post a Comment