• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

.github/H10-Apr-2021-1918

docs/H03-May-2022-361220

src/H10-Apr-2021-2,0281,492

tests/H10-Apr-2021-858683

AUTHORSH A D14-Mar-2021840 2822

LICENSEH A D11-Jul-20171.5 KiB3023

MANIFEST.inH A D14-Mar-2021277 1716

PKG-INFOH A D10-Apr-20214.2 KiB12184

README.mdH A D10-Apr-20212.4 KiB9357

manage.pyH A D04-Dec-2019252 116

pyproject.tomlH A D09-Apr-2021646 3125

setup.cfgH A D10-Apr-202138 53

setup.pyH A D10-Apr-20211.6 KiB5142

tox.iniH A D10-Apr-20212.2 KiB8173

README.md

1# django-bootstrap3
2
3[![Build](https://travis-ci.org/zostera/django-bootstrap3.svg?branch=main)](https://travis-ci.org/zostera/django-bootstrap3)
4[![Coverage Status](https://coveralls.io/repos/github/zostera/django-bootstrap3/badge.svg?branch=main)](https://coveralls.io/github/zostera/django-bootstrap3?branch=main)
5[![Latest PyPI version](https://img.shields.io/pypi/v/django-bootstrap3.svg)](https://pypi.python.org/pypi/django-bootstrap3)
6[![Any color you like](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
7
8Bootstrap 3 integration for Django.
9
10## Goal
11
12The goal of this project is to seamlessly blend Django and Bootstrap 3.
13
14- Want to use Bootstrap 4 in Django? See https://github.com/zostera/django-bootstrap4.
15- Want to use Bootstrap 5 in Django? See https://github.com/zostera/django-bootstrap5.
16
17## Requirements
18
19Python 3.6 or newer with Django >= 2.2 or newer.
20
21## Documentation
22
23The full documentation is at https://django-bootstrap3.readthedocs.io/
24
25## Installation
26
271. Install using pip:
28
29    ```shell script
30    pip install django-bootstrap3
31    ```
32
33   Alternatively, you can install download or clone this repo and call ``pip install -e .``.
34
352. Add to `INSTALLED_APPS` in your `settings.py`:
36
37   ```python
38   INSTALLED_APPS = (
39       # ...
40       "bootstrap3",
41       # ...
42   )
43   ````
44
453. In your templates, load the `bootstrap3` library and use the `bootstrap_*` tags:
46
47## Example template
48
49```djangotemplate
50{% load bootstrap3 %}
51
52{# Display a form #}
53
54<form action="/url/to/submit/" method="post" class="form">
55    {% csrf_token %}
56    {% bootstrap_form form %}
57    {% buttons %}
58        <button type="submit" class="btn btn-primary">Submit</button>
59    {% endbuttons %}
60</form>
61```
62
63Demo
64----
65
66A demo app is provided in `demo`. You can run it from your virtualenv with `python manage.py runserver`.
67
68
69Bugs and suggestions
70--------------------
71
72If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.
73
74https://github.com/zostera/django-bootstrap3/issues
75
76
77License
78-------
79
80You can use this under BSD-3-Clause. See [LICENSE](LICENSE) file for details.
81
82
83Author
84------
85
86Developed and maintained by [Zostera](https://zostera.nl).
87
88Original author: [Dylan Verheul](https://github.com/dyve).
89
90Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.
91
92Please see [AUTHORS](AUTHORS) for a list of contributors.
93