skillfed

crispy-bootstrap4

Bootstrap4 template pack for django-crispy-forms

crispy-bootstrap4 v2026.2 430.0K downloads/30d#6,733 on PyPI14
Permissive license MIT Active released

What it is and what it does

crispy-bootstrap4 is a template pack that bridges django-crispy-forms and Bootstrap 4, providing pre-built HTML templates for rendering Django form fields and layouts with Bootstrap 4 classes and structure. It was originally part of django-crispy-forms but was extracted into a separate package starting with version 2.0.

When installed and configured, it allows developers to use django-crispy-forms' form rendering tags and filters to automatically output Bootstrap 4-compliant HTML without writing custom templates. The package depends on django and django-crispy-forms as its only runtime dependencies, making it a lightweight addition to existing Django projects.

Use it for:

  • Render Django forms with Bootstrap 4 styling automatically without writing custom HTML templates.
  • Migrate existing django-crispy-forms projects to Bootstrap 4 after the template pack was separated from core.
  • Build Django admin interfaces or user-facing forms with consistent Bootstrap 4 appearance.
  • Reduce boilerplate form markup by delegating layout and styling to the template pack.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides Bootstrap 4 HTML templates for django-crispy-forms, enabling automatic rendering of Django forms with Bootstrap 4 styling and layout.

Yes. This is a stable, actively maintained template pack with low install friction and no known vulnerabilities. It solves a specific, well-defined problem—rendering Django forms with Bootstrap 4—and is the standard way to do so after django-crispy-forms 2.0. Install it if you use django-crispy-forms and want Bootstrap 4 styling.

Install

crispy-bootstrap4 on PyPI

pip

pip install crispy-bootstrap4

uv

uv add crispy-bootstrap4

poetry

poetry add crispy-bootstrap4

Installing crispy-bootstrap4

Before you install

Low friction install with only two runtime dependencies (django and django-crispy-forms). Repository is actively maintained with recent commits and marked production-stable.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open-source and commercial projects.

Quickstart

pip install crispy-bootstrap4

# In settings.py:
INSTALLED_APPS = [
    ...
    "crispy_forms",
    "crispy_bootstrap4",
]
CRISPY_ALLOWED_TEMPLATE_PACKS = "bootstrap4"
CRISPY_TEMPLATE_PACK = "bootstrap4"

Requires django and django-crispy-forms to be installed first; Python 3.10 or later.

Verify before relying

  • Whether this template pack supports Bootstrap 4 versions beyond the standard release cycle.
  • Compatibility details with django-crispy-forms versions prior to 2.0 or after the latest tested release.

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — django, django-crispy-forms
Maintenance actively maintained — 184 days since the last release
Last repo commit
First released
Downloads 430,025/month — #6,733 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: crispy_bootstrap4-2026.2-py3-none-any.whl

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

Tags

django form bootstrap stylingcrispy forms bootstrap4 templatesdjango bootstrap form renderingform layout bootstrap djangocrispy bootstrap template packdjango form html templatesbootstrap form components django
django-formsbootstrap-ui

More Python Modules packages