skillfed

crispy-bootstrap5

Bootstrap5 template pack for django-crispy-forms

crispy-bootstrap5 v2026.3 1.3M downloads/30d#4,093 on PyPI528
Permissive license MIT Active released

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-bootstrap5

uv

uv add crispy-bootstrap5

poetry

poetry add crispy-bootstrap5

Installing 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

Environment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 5.2Framework :: Django :: 6.0Operating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python Modules

Tags

bootstrap 5 django formscrispy forms template packdjango form styling bootstrapbootstrap accordion djangofloating labels django formsdjango form widgets bootstrap5
django-formsbootstrap5template-pack

More Python Modules packages