Skip to main content
https://api.travis-ci.com/IshanManchanda/dj-bootstrap-components.svg?branch=master https://readthedocs.org/projects/dj-bootstrap-components/badge/?version=latest https://badge.fury.io/py/dj-bootstrap-components.svg https://img.shields.io/pypi/dm/dj-bootstrap-components

Django Bootstrap components Supported Python versions: 3.7+ Supported Django versions: 3.0.0+

Quick start

Documentation: https://dj-bootstrap-components.rtfd.io/

1. Install “dj-bootstrap-components”. The recommended and only officially supported way is using pip:

pip install dj-bootstrap-components
  1. Add “bootstrap_components” to your INSTALLED_APPS setting:

    INSTALLED_APPS = [
        ...
        'bootstrap_components',
    ]

3. Add the following to your base template or to each template that will use the components:

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>

Note that you can use any other CDN or self-host the files if you like.

  1. Within a template, simply include the needed component and pass it the required context:

    {% include 'bootstrap_components/alert.html' with content='<b> bold </b> sample text' color='primary' %}

Metadata

Release files for dj-bootstrap-components 0.2.2

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

Source distribution (sdist)

Source distribution for dj-bootstrap-components 0.2.2
File Size Uploaded
dj-bootstrap-components-0.2.2.tar.gz 145.9 kB Details

Release files / dj-bootstrap-components-0.2.2.tar.gz

Download URL dj-bootstrap-components-0.2.2.tar.gz
Size 145.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dfa495ba1a03e86635049bde02dfc2e1cc5ac6663f4049ba89b33d79366d2e2e
BLAKE2b-256 checksum
How to use checksums
e010f8de6e598303a1e90941d3c069b7cf0cd7187dd956ffa3b15239f67e6fba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

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