I write a custom tag for using in django templates:
{% my_custom_tag %}
.
Using django channels it extends some page functionality. But I a worried that users may by accident insert this tag twice to a template, and that can create some issues because channels will deliver the same info twice etc.
Is there any relatively simple way to check that the tag is used in a template only once and raise an error otherwise?