{% extends 'base.html' %} {% load static %} {% block extra_head %} {% endblock %} {% block content %}

Sample Form 2


This form only validates when the submit button is clicked.

{% csrf_token %} {% if form.non_field_errors %} {% for error in form.non_field_errors %} {{ error }} {% endfor %} {% endif %} {% for field in form %}
{{ field }} {% if field.errors %} {{ field.errors }} {% endif %}
{% endfor %}
{% endblock %} {% block extra_js %} {% endblock %}