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
Permalink
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
tests
.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
MANIFEST.in 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
manage.py Change settings for tests Jul 13, 2018
pyproject.toml
requirements.txt Add BeaitfulSoup4 to requirements (for development) Aug 24, 2018
setup.py Prepare release 0.0.8 Mar 12, 2019
tox.ini

README.rst

Bootstrap 4 for Django

https://travis-ci.org/zostera/django-bootstrap4.svg?branch=develop Latest PyPI version

Bootstrap 4 integration for Django.

Goal

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

Requirements

Documentation

The full documentation is at https://django-bootstrap4.readthedocs.io/

Installation

  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 settings.py:

    'bootstrap4',

  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 %}
</form>

Demo

A demo app is provided in demo. You can run it from your virtualenv with python manage.py 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.

https://github.com/zostera/django-bootstrap4/issues

License

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

Author

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.