How to Make Your Django Forms Look Crispy 🥓
Published in
4 min readMar 2, 2021
Django’s built-in form features are great when it comes to functionality but lack a stylized appearance. Luckily there is a Python package called django crispy forms that styles Django forms CSS for you using built-in template packs.
If you are new to using Django forms, then learn how to build a Django form first before moving on to the styling.
How to use Django crispy forms
pip install django-crispy-forms
in your Django project- add
crispy_forms
to the list of installed apps in the settings - add the
crispy_template_pack
to the settings - load in the Django
crispy_forms_tags
in the HTML template - add the
|crispy
or|as_crispy_field
filter to the Django form variable
How to install Django crispy forms
To use this package, you need to first pip install django crispy forms then add it to your Django project settings.