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

Sample Form


Sample form where forms.bundle.js is being added via an HTML <script> tag. Then, the object variable, fv, is being exported and used within another <script> tag.

{% 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 %}