Make django not to process commented out html -


this question has answer here:

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

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -