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

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

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

{% endfor %}     
{% endblock %}