{% extends "base.html" %} {% block content %} {% load taggit_templatetags2_tags %} 
{% get_taglist as tags for 'application.post'%}

<div>
<form class="post-form" method="post">
    {% csrf_token %} {{form.as_p}}
    <button type="submit" class="save btn btn-outline-dark">Save</button>
</form>
{% if messages %}
{% for message in messages %}
<div {% if message.tags %} class="{{ message.tags }}" {% endif %}>{{ message }}</div>
{% endfor %}
{% endif %}
{% endblock %}