style django forms with crisp code example

Example 1: style django forms with crisp

{% extends 'base.html' %}

{% load crispy_forms_tags %}

{% block content %}
  
{% csrf_token %} {{ form|crispy }}
{% endblock %}

Example 2: style django forms with crisp

{% extends 'base.html' %}

{% load crispy_forms_tags %}

{% block content %}
  
{% csrf_token %}
{{ form.email|as_crispy_field }}
{{ form.password|as_crispy_field }}
{{ form.address_1|as_crispy_field }} {{ form.address_2|as_crispy_field }}
{{ form.city|as_crispy_field }}
{{ form.state|as_crispy_field }}
{{ form.zip_code|as_crispy_field }}
{{ form.check_me_out|as_crispy_field }}
{% endblock %}

Tags:

Misc Example