Skip to content
Bootstrap 4 integration with Django.
Branch: master
Clone or download
dyve Merge pull request #137 from tobiasmcnulty/master
update travis and tox configs for Django 2.2 and Python 3.7 final
Latest commit ead5d4d Mar 19, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
bootstrap4 Merge pull request #117 from xi/115-skip-label Mar 16, 2019
demo Blacken code Mar 12, 2019
docs Blacken code Mar 12, 2019
.coveragerc Cleanup some duplications in tox config and generate html coverage re… May 24, 2017
.gitignore Merge branch 'develop' into ci Jun 10, 2017
.travis.yml update travis and tox configs for Django 2.2 and Python 3.7 final Mar 19, 2019
AUTHORS.rst Update some URLs to be zostera instead of dyve. May 7, 2017
CONTRIBUTING.rst Allow EmailInput to have add ons (#131) Mar 12, 2019
HISTORY.rst Update HISTORY.rst Mar 16, 2019
LICENSE Convert code, files, documentation to be bootstrap4 rather than boots… May 7, 2017
MIGRATE.rst Doc: update the link of migration to Bootstrap 4.0 Jun 16, 2018
README.rst Change settings for tests Jul 13, 2018
requirements.txt Add BeaitfulSoup4 to requirements (for development) Aug 24, 2018 Prepare release 0.0.8 Mar 12, 2019


Bootstrap 4 for Django Latest PyPI version

Bootstrap 4 integration for Django.


The goal of this project is to seamlessly blend Django and Bootstrap 4.



The full documentation is at


  1. Install using pip:

    pip install django-bootstrap4

    Alternatively, you can install download or clone this repo and call pip install -e ..

  2. Add to INSTALLED_APPS in your


  3. In your templates, load the bootstrap4 library and use the bootstrap_* tags:

Example template

{% load bootstrap4 %}

{# Display a form #}

<form action="/url/to/submit/" method="post" class="form">
    {% csrf_token %}
    {% bootstrap_form form %}
    {% buttons %}
        <button type="submit" class="btn btn-primary">Submit</button>
    {% endbuttons %}


A demo app is provided in demo. You can run it from your virtualenv with python runserver.

Bugs and suggestions

If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.


You can use this under BSD-3-Clause. See LICENSE file for details.


Developed and maintained by Zostera.

Original author & Development lead: Dylan Verheul.

Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.

Please see AUTHORS.rst for a list of contributors.

You can’t perform that action at this time.