{% extends 'base.html' %} {% load static %} {% block title %} Add Post {% endblock %} {% block content %} {{ form.non_field_errors }} {% for field in form %} {% if field.errors %}

{{ field.label }} has the following errors:

{% endif %} {% endfor %}

Add a new post:

{% csrf_token %} {% for field in form %} {{field.label}}: {{field}}

{% endfor %}     
{% endblock %}