use django taggit in template
- Import the taggit library at the top of your Django template:
{% load taggit %}
- Use the tags for the specific object, for example, a post:
{% for tag in post.tags.all %} {{ tag.name }} {% endfor %}
- Use the tag form to add or remove tags:
{% for form in post.tags_form %} {{ form }} {% endfor %}