{% extends "base.html" %} {% load bootstrap_toolkit %} {% block extra_head %} {{ form.media }} {% endblock %} {% block content %}

This is a {{ layout }} Django form, bootstrapped

 

{% csrf_token %} {{ form|as_bootstrap:layout }} {% if layout == "horizontal" %}

{% else %} {% endif %}

Submit the form to see error messages styled into it.

{% endblock %}