Bootstrap 4 for Django
Project description
django-bootstrap 4
Bootstrap 4 integration for Django.
Goal
The goal of this project is to seamlessly blend Django and Bootstrap 4.
Requirements
Python 3.7 or newer with Django >= 2.2 or newer.
Documentation
The full documentation is at https://django-bootstrap4.readthedocs.io/
Installation
- Install using pip:
pip install django-bootstrap4
Alternatively, you can install download or clone this repo and call pip install -e .
.
- Add to
INSTALLED_APPS
in yoursettings.py
:
INSTALLED_APPS = (
# ...
"bootstrap4",
# ...
)
- In your templates, load the
bootstrap4
library and use thebootstrap_*
tags. See example below.
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: 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-bootstrap4-22.1.tar.gz
.
File metadata
- Download URL: django-bootstrap4-22.1.tar.gz
- Upload date:
- Size: 82.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc9984f7238fbcd330ec5111bf0435083caa7192b022eedd53bfa4128bee318f |
|
MD5 | aaac852b12474bfbb5713448fcd09b8b |
|
BLAKE2b-256 | 0124f204082898bb04d40e09474eb123dbc13f3a54c9b025b8249b143176f16a |
Provenance
File details
Details for the file django_bootstrap4-22.1-py3-none-any.whl
.
File metadata
- Download URL: django_bootstrap4-22.1-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.4.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6da4cb54682012ff8baa1a1e672ba30cbfae82fb3d74f4b341109074e8e239f |
|
MD5 | 88cc6fba2782271b32fe07cae0718e9d |
|
BLAKE2b-256 | 22b624e0cabfa302f2d779c3905d4384e12632e8689c2a4f0f81aebbb6c1d27d |