crispy-bootstrap5
Bootstrap5 template pack for django-crispy-forms
What it is and what it does
crispy-bootstrap5 is a template pack plugin that bridges django-crispy-forms and Bootstrap 5, translating Django form definitions into Bootstrap 5–styled HTML. It provides layout objects for Bootstrap 5–specific features: FloatingField for floating labels, BS5Accordion for accordion groups with flush and always-open modes, and Switch for toggle-style checkboxes. Once installed and configured in Django settings, it handles form rendering automatically, letting developers write form logic in Python and get Bootstrap 5 markup without manual HTML.
The package is lightweight—just a wheel with two dependencies—and targets modern Python (3.9+) and recent Django versions (5.2, 6.0). It's actively maintained and carries no known security vulnerabilities, making it a straightforward drop-in for Django projects already using crispy-forms that want Bootstrap 5 styling.
Use it for:
- Render Django forms with Bootstrap 5 styling and layout without writing custom HTML templates.
- Add floating labels to form fields using the FloatingField layout object for modern form UX.
- Build collapsible accordion form sections with Bootstrap 5 accordion features (flush, always-open modes).
- Implement toggle switches for boolean form fields using the Switch layout object.
- Maintain consistent Bootstrap 5 form styling across a multi-page Django application.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Bootstrap 5 form templates and layout components for django-crispy-forms, enabling styled form rendering with Bootstrap 5 markup and interactive elements like floating labels, accordions, and switches.
Yes. If you're using django-crispy-forms in a Django project targeting Bootstrap 5, this is the standard template pack for that combination. Low friction, no vulnerabilities, active maintenance, and MIT licensing make it a straightforward choice. Install it if you want Bootstrap 5 form rendering without writing custom templates.
Install
crispy-bootstrap5 on PyPI
pip
pip install crispy-bootstrap5uv
uv add crispy-bootstrap5poetry
poetry add crispy-bootstrap5Installing crispy-bootstrap5
Before you install
Low install friction—pure Python wheel with only two runtime dependencies. Actively maintained with recent release on 2026-03-01 and ongoing repository activity.
License in practice
MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects with minimal restrictions.
Quickstart
pip install crispy-bootstrap5
# In Django settings.py:
INSTALLED_APPS = (
"crispy_forms",
"crispy_bootstrap5",
)
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap5"
CRISPY_TEMPLATE_PACK = "bootstrap5"
# In a form layout:
from crispy_bootstrap5.bootstrap5 import FloatingField
Layout(FloatingField("field_name"))
Requires django and django-crispy-forms to be installed and configured in your Django project.
Verify before relying
- Whether FloatingField, BS5Accordion, and Switch layout objects are fully compatible with all Bootstrap 5 versions or have known limitations.
- Performance impact of template rendering at scale or with complex form hierarchies.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — django, django-crispy-forms |
| Maintenance | actively maintained — 166 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,296,690/month — #4,093 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: crispy_bootstrap5-2026.3-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
crispy-bootstrap3Provides Bootstrap 3 HTML templates for…
permissive · top 15,000 on PyPI
crispy-bootstrap4Provides Bootstrap 4 HTML templates for…
permissive · top 15,000 on PyPI
django-bootstrap-datepicker-plusProvides Bootstrap-styled date, time, and…
permissive · top 15,000 on PyPI
django-crispy-formsRenders Django forms programmatically with full…
permissive · top 5,000 on PyPI
crispy-tailwindProvides Tailwind CSS styling templates for…
permissive · top 15,000 on PyPI
django-bootstrap5Provides Django template tags and filters to…
permissive · top 15,000 on PyPI
django-bootstrap-formRenders Django form fields as Bootstrap-styled…
permissive · top 15,000 on PyPI
django-bootstrap3Provides Django template tags and filters to…
permissive · top 15,000 on PyPI
Bootstrap-FlaskBootstrap-Flask provides Jinja macros that…
permissive · top 15,000 on PyPI
Flask-BootstrapFlask-Bootstrap packages Bootstrap CSS and…
permissive · top 15,000 on PyPI