Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/ | H | 10-Apr-2021 | - | 19 | 18 | |
docs/ | H | 03-May-2022 | - | 361 | 220 | |
src/ | H | 10-Apr-2021 | - | 2,028 | 1,492 | |
tests/ | H | 10-Apr-2021 | - | 858 | 683 | |
AUTHORS | H A D | 14-Mar-2021 | 840 | 28 | 22 | |
LICENSE | H A D | 11-Jul-2017 | 1.5 KiB | 30 | 23 | |
MANIFEST.in | H A D | 14-Mar-2021 | 277 | 17 | 16 | |
PKG-INFO | H A D | 10-Apr-2021 | 4.2 KiB | 121 | 84 | |
README.md | H A D | 10-Apr-2021 | 2.4 KiB | 93 | 57 | |
manage.py | H A D | 04-Dec-2019 | 252 | 11 | 6 | |
pyproject.toml | H A D | 09-Apr-2021 | 646 | 31 | 25 | |
setup.cfg | H A D | 10-Apr-2021 | 38 | 5 | 3 | |
setup.py | H A D | 10-Apr-2021 | 1.6 KiB | 51 | 42 | |
tox.ini | H A D | 10-Apr-2021 | 2.2 KiB | 81 | 73 |
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