# django-bootstrap5
[](https://github.com/zostera/django-bootstrap5/actions?workflow=test)
[](https://coveralls.io/github/zostera/django-bootstrap5?branch=main)
[](https://pypi.python.org/pypi/django-bootstrap5)
Bootstrap 5 for Django.
## Goal
The goal of this project is to seamlessly blend Django and Bootstrap 5.
## Status
Ready for production. Issues and pull requests welcome, see [CONTRIBUTING.md](CONTRIBUTING.md).
## Requirements
This package requires a combination of Python and Django that is currently supported.
See "Supported Versions" on https://www.djangoproject.com/download/.
This package uses [uv](https://github.com/astral-sh/uv) and [just](https://github.com/casey/just) for local development.
## Documentation
The full documentation is at https://django-bootstrap5.readthedocs.io/
## Installation
1. Install using pip:
```console
pip install django-bootstrap5
```
2. Add to `INSTALLED_APPS` in your `settings.py`:
```python
INSTALLED_APPS = (
# ...
"django_bootstrap5",
# ...
)
```
3. In your templates, load the `django_bootstrap5` library and use the `bootstrap_*` tags. See example below.
## Example template
```jinja2
{% load django_bootstrap5 %}
<form action="/url/to/submit/" method="post" class="form">
{% csrf_token %}
{% bootstrap_form form %}
{% bootstrap_button button_type="submit" content="OK" %}
{% bootstrap_button button_type="reset" content="Cancel" %}
</form>
```
## Example app
An example app is provided in the folder `example`. You can run the example app with this command:
```console
just 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-bootstrap5/issues
## License
You can use this under BSD-3-Clause. See [LICENSE](LICENSE) file for details.
## Author
Developed and maintained by [Zostera](https://zostera.nl).
Original author: [Dylan Verheul](https://github.com/dyve).
Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.
Please see [AUTHORS](AUTHORS) for a list of contributors.
Raw data
{
"_id": null,
"home_page": null,
"name": "django-bootstrap5",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "django, bootstrap, bootstrap5",
"author": "Dylan Verheul",
"author_email": "Dylan Verheul <dylan@dyve.net>",
"download_url": "https://files.pythonhosted.org/packages/40/97/7c905896f8014978e982f5cfe3c3a56131cf5042d8983f33b98b196ef119/django_bootstrap5-25.2.tar.gz",
"platform": null,
"description": "# django-bootstrap5\n\n[](https://github.com/zostera/django-bootstrap5/actions?workflow=test)\n[](https://coveralls.io/github/zostera/django-bootstrap5?branch=main)\n[](https://pypi.python.org/pypi/django-bootstrap5)\n\nBootstrap 5 for Django.\n\n## Goal\n\nThe goal of this project is to seamlessly blend Django and Bootstrap 5.\n\n## Status\n\nReady for production. Issues and pull requests welcome, see [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Requirements\n\nThis package requires a combination of Python and Django that is currently supported.\n\nSee \"Supported Versions\" on https://www.djangoproject.com/download/.\n\nThis package uses [uv](https://github.com/astral-sh/uv) and [just](https://github.com/casey/just) for local development.\n\n## Documentation\n\nThe full documentation is at https://django-bootstrap5.readthedocs.io/\n\n## Installation\n\n1. Install using pip:\n\n ```console\n pip install django-bootstrap5\n ```\n\n2. Add to `INSTALLED_APPS` in your `settings.py`:\n\n ```python\n INSTALLED_APPS = (\n # ...\n \"django_bootstrap5\",\n # ...\n )\n ```\n\n3. In your templates, load the `django_bootstrap5` library and use the `bootstrap_*` tags. See example below.\n\n## Example template\n\n```jinja2\n{% load django_bootstrap5 %}\n\n<form action=\"/url/to/submit/\" method=\"post\" class=\"form\">\n {% csrf_token %}\n\n {% bootstrap_form form %}\n\n {% bootstrap_button button_type=\"submit\" content=\"OK\" %}\n {% bootstrap_button button_type=\"reset\" content=\"Cancel\" %}\n</form>\n```\n\n## Example app\n\nAn example app is provided in the folder `example`. You can run the example app with this command:\n\n```console\njust example\n```\n\n## Bugs and suggestions\n\nIf you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.\n\nhttps://github.com/zostera/django-bootstrap5/issues\n\n## License\n\nYou can use this under BSD-3-Clause. See [LICENSE](LICENSE) file for details.\n\n## Author\n\nDeveloped and maintained by [Zostera](https://zostera.nl).\n\nOriginal author: [Dylan Verheul](https://github.com/dyve).\n\nThanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.\n\nPlease see [AUTHORS](AUTHORS) for a list of contributors.\n",
"bugtrack_url": null,
"license": null,
"summary": "Bootstrap 5 for Django",
"version": "25.2",
"project_urls": {
"Changelog": "https://github.com/zostera/django-bootstrap5/blob/main/CHANGELOG.md",
"Documentation": "https://django-bootstrap5.readthedocs.io/",
"Homepage": "https://github.com/zostera/django-bootstrap5",
"Issues": "https://github.com/zostera/django-bootstrap5/issues",
"Source": "https://github.com/zostera/django-bootstrap5"
},
"split_keywords": [
"django",
" bootstrap",
" bootstrap5"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "45e4becdbbb273a4176029df49999d78169600000747ed7b5118dab13fe49d99",
"md5": "20089bd2ddc5a33764badbe105557fb1",
"sha256": "9418969fa5932729dc1addb1b70f13c9312a522b15033219ac3cbc5728eb8937"
},
"downloads": -1,
"filename": "django_bootstrap5-25.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "20089bd2ddc5a33764badbe105557fb1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 26740,
"upload_time": "2025-07-30T12:33:28",
"upload_time_iso_8601": "2025-07-30T12:33:28.581784Z",
"url": "https://files.pythonhosted.org/packages/45/e4/becdbbb273a4176029df49999d78169600000747ed7b5118dab13fe49d99/django_bootstrap5-25.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "40977c905896f8014978e982f5cfe3c3a56131cf5042d8983f33b98b196ef119",
"md5": "a01f670110ea0c973f108f916dd18e23",
"sha256": "abcfcd543efc19aaab4456a12b566507f684cfda98effc5dd3ad5167ba05c7b3"
},
"downloads": -1,
"filename": "django_bootstrap5-25.2.tar.gz",
"has_sig": false,
"md5_digest": "a01f670110ea0c973f108f916dd18e23",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 129765,
"upload_time": "2025-07-30T12:33:30",
"upload_time_iso_8601": "2025-07-30T12:33:30.216164Z",
"url": "https://files.pythonhosted.org/packages/40/97/7c905896f8014978e982f5cfe3c3a56131cf5042d8983f33b98b196ef119/django_bootstrap5-25.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-30 12:33:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "zostera",
"github_project": "django-bootstrap5",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "django-bootstrap5"
}