crispy forms documentation code example

Example 1: crispy forms

# In Settings
INSTALLED_APPS = [
	'crispy_forms',
]

# Very Bottom of Settings
CRISPY_TEMPLATE_PACK = 'bootstrap4'

# Top of HTML page
{% load crispy_forms_tags %}

# Apply styling to form
{{ form | crispy }}

Example 2: crispy forms

pip install django-crispy-forms

Example 3: crispy forms

Install latest stable version into your python environment using pip:
pip install django-crispy-forms

Once installed add crispy_forms to your INSTALLED_APPS in settings.py:
INSTALLED_APPS = (
    ...
    'crispy_forms',
)