use django taggit in template

  1. Import the taggit library at the top of your Django template:

{% load taggit %}

  1. Use the tags for the specific object, for example, a post:

{% for tag in post.tags.all %} {{ tag.name }} {% endfor %}

  1. Use the tag form to add or remove tags:

{% for form in post.tags_form %} {{ form }} {% endfor %}