--- id: crispy-bootstrap5 version: "2026.3" license: MIT license_treatment: permissive maintenance: active --- # crispy-bootstrap5 — Bootstrap5 template pack for django-crispy-forms License: permissive · Maintenance: active · Downloads: 1.3M/mo ## 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 above — 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 pip install crispy-bootstrap5 uv add crispy-bootstrap5 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_current - Install friction: low - Maintenance: active - Downloads: 1.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags bootstrap 5 django forms, crispy forms template pack, django form styling bootstrap, bootstrap accordion django, floating labels django forms, django form widgets bootstrap5, django-forms, bootstrap5, template-pack [View on SkillFed](https://skillfed.io/packages/crispy-bootstrap5) · [View on PyPI](https://pypi.org/project/crispy-bootstrap5/)