Skip to main content

Bootstrap 3 for Django

Project description

django-bootstrap3

CI Coverage Status Latest PyPI version

Bootstrap 3 for Django.

Goal

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

Maintenance Mode

Bootstrap 3 has been superseded by Bootstrap 4, which has since been superseded by Bootstrap 5. As a result, this package is now in maintenance mode and will only receive bug fixes and security updates. No new features or enhancements will be added. We recommend that new projects use Bootstrap 5 and encourage existing projects to consider migrating when feasible.

For Bootstrap 4, please refer to our dedicated package: django-bootstrap4.

For Bootstrap 5, please refer to our dedicated package: django-bootstrap5.

For icons, we recommend our dedicated package: django-icons.

Requirements

This package requires a combination of Python and Django that is currently supported.

See "Supported Versions" on https://www.djangoproject.com/download/.

Documentation

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

Installation

  1. Install using pip:

    pip install django-bootstrap3
    

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

  2. Add to INSTALLED_APPS in your settings.py:

    INSTALLED_APPS = (
        # ...
        "bootstrap3",
        # ...
    )
    
  3. In your templates, load the bootstrap3 library and use the bootstrap_* tags:

Example template

{% load bootstrap3 %}

{# 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>

Example app

An example app is provided in example. You can run it with make example.

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-bootstrap3/issues

License

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

Author

Developed and maintained by Zostera.

Original author: Dylan Verheul.

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

Please see AUTHORS for a list of contributors.

Project details


Release history Release notifications | RSS feed

This version

25.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_bootstrap3-25.3.tar.gz (41.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_bootstrap3-25.3-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file django_bootstrap3-25.3.tar.gz.

File metadata

  • Download URL: django_bootstrap3-25.3.tar.gz
  • Upload date:
  • Size: 41.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for django_bootstrap3-25.3.tar.gz
Algorithm Hash digest
SHA256 ad7a4eb7ac472a38c053b749ebd0a0b4288ff73c321018c19a36027904e5089a
MD5 df39b1be0262b16f46b2880aa22be318
BLAKE2b-256 fd0d457333edb08c18f63e1779b58a284530cac0ac1333fe495a8c82898115f8

See more details on using hashes here.

File details

Details for the file django_bootstrap3-25.3-py3-none-any.whl.

File metadata

  • Download URL: django_bootstrap3-25.3-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for django_bootstrap3-25.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b4b04ca0bdcc23cbe471a7101f6f049c43849619ec3a9176f4e9bc002cb01257
MD5 2894397753bd7ff9b96416df1b8d6c42
BLAKE2b-256 41a0f6a39c2e85bdab8d13764c8de3f1e798e7a7618fb92b71e1226301b2dc2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page