Skip to main content

Django Components Bootstrap

Bootstrap 5 components for Django with React-Bootstrap API parity.

Installation

pip install django-components-bootstrap

Add to your Django settings:

INSTALLED_APPS = [
    ...
    "django_components",
    "django_components_bootstrap",
]

Quick Start

{% load component_tags %}

{% component "Button" variant="primary" %}
    Click me!
{% endcomponent %}

{% component "Alert" variant="success" dismissible=True %}
    <strong>Success!</strong> Your changes have been saved.
{% endcomponent %}

Configuration

By default, all Bootstrap components are automatically registered when the app loads. To disable auto-registration:

DJANGO_COMPONENTS_BOOTSTRAP = {
    "AUTO_REGISTER": False,
}

When auto-registration is disabled, you can manually import and register components:

from django_components import registry
from django_components_bootstrap.components.bootstrap5 import Button, Alert

registry.register("Button", Button)
registry.register("MyAlert", Alert)  # Register under a custom name

Documentation

Full documentation with examples: https://joeyjurjens.github.io/django-components-bootstrap/

Development

Setup

git clone https://github.com/joeyjurjens/django-components-bootstrap.git
cd django-components-bootstrap
uv sync --all-extras

Running Tests

pytest

Linting & Formatting

uv run ruff format .        # format code
uv run ruff check .         # lint
uv run ruff check --fix .   # lint, auto-fixing what it can

Building Documentation

cd docs
python generate_docs.py
mkdocs serve

Metadata

Release files for django-components-bootstrap 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-components-bootstrap 0.2.0
File Size Uploaded Provenance Actions
django_components_bootstrap-0.2.0.tar.gz 110.9 kB With provenance Details for django_components_bootstrap-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-components-bootstrap 0.2.0
File Interpreter ABI Platform Actions
django_components_bootstrap-0.2.0-py3-none-any.whl Python 3 none any Details for django_components_bootstrap-0.2.0-py3-none-any.whl

Total release size: 155.8 kB

Release files / django_components_bootstrap-0.2.0.tar.gz

Download URL django_components_bootstrap-0.2.0.tar.gz
Size 110.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3b5ce223ef92677c2c535df43a4f8cedc5180b0055bc25c7ba0a9165f6e41da1
BLAKE2b-256 checksum
How to use checksums
9562563f3eadce417a99c612fa9598f6083aacbb94f561348c694d394236b70f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.

Transparency log

Release files / django_components_bootstrap-0.2.0-py3-none-any.whl

Download URL django_components_bootstrap-0.2.0-py3-none-any.whl
Size 45.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e281b282a10a7024f8194bd604442758f36759e8387f69ac61a635a968b1fa16
BLAKE2b-256 checksum
How to use checksums
27fc957892e229220e8d1cc49db37c4e63edaddb496f49c860af26cf01de0b9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.

Transparency log

Security for django-components-bootstrap 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_components_bootstrap-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page