crispy forms in django code example
Example 1: crispy forms
INSTALLED_APPS = [
'crispy_forms',
]
CRISPY_TEMPLATE_PACK = 'bootstrap4'
{% load crispy_forms_tags %}
{{ form | crispy }}
Example 2: how to install crispy forms django
pip install django-crispy-forms
Example 3: django crispy forms foundation for site
pip install crispy-forms-foundation
Example 4: 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',
)