=======================
Bootstrap theme support for Django, includes themes from Bootswatch.
* Bootstrap (http://getbootstrap.com/)
* Bootswatch (http://bootswatch.com/)
Installation
------------
django-bootstrap-themes can be installed via pip:
```shell
pip install django-bootstrap-themes
```
or by copying the `bootstrap_themes` directory into your Django project.
Configuration
-------------
To configure django-bootstrap-themes in your project, first add it to
the installed apps in your Django settings:
```python
INSTALLED_APPS = (
# Django apps
'bootstrap_themes',
# Other apps
)
```
Once you've added it to your installed apps, you can use the template
tags to get the CSS and JS files for Bootstrap:
* Loading the templatetags
```django
{% load bootstrap_themes %}
```
* Getting the CSS files (use the `theme` parameter to select the theme
and the `type` parameter to choose between CSS, minified CSS, or LESS
format for the stylesheets)
```django
{% bootstrap_styles theme='default' type='min.css' %}
{% bootstrap_styles theme='cosmo' type='css' %}
{% bootstrap_styles theme='united' type='less' %}
```
* Getting the Javascript files (select minified or not with the
`use_min` parameter)
```django
{% bootstrap_script use_min=True %}
```
As with any Django templatetags, you can use variables for the
parameters, thus making it easy to switch themes, and even make the
theme user-configurable.
If you want to make the theme user configurable, there is a handy
function to return the list of included themes as a `choices` list for
a `CharField`, like this:
```python
from django.db import models
from bootstrap_themes import list_themes
class MyModel(models.Model):
theme = models.CharField(max_length=255, default='default', choices=list_themes())
```
Then in your templates, you can use the value of the `theme` field as the
theme parameter to `bootstrap_styles`.
Metadata
Release files for django-bootstrap-themes 3.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-bootstrap-themes-3.3.6.tar.gz | 890.4 kB | Without provenance | Details for django-bootstrap-themes-3.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_bootstrap_themes-3.3.6-py3.5.egg | Legacy Egg format | - | - | Details for django_bootstrap_themes-3.3.6-py3.5.egg |
Total release size: 1.8 MB
Release files / django-bootstrap-themes-3.3.6.tar.gz
| Download URL | django-bootstrap-themes-3.3.6.tar.gz |
|---|---|
| Size | 890.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e04f13b91a756b19e8879ee8b5d5f5a77353b5af20fba8af1fe4de8e2b4f1df6
|
|
BLAKE2b-256 checksum How to use checksums |
4f6d291c7c0d444154ff65e87c0defa5b67c8ce31810a95745b07c6cbbd64b12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_bootstrap_themes-3.3.6-py3.5.egg
| Download URL | django_bootstrap_themes-3.3.6-py3.5.egg |
|---|---|
| Size | 950.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
b42f92ba1c1a9d02d7e6024e52f9d21bea3c3b2467e296cca107ec86c221fcf4
|
|
BLAKE2b-256 checksum How to use checksums |
ed929d27fe5b57b5609f9da70e1cdcdfdfbc1c6e53d754d94856a1ce2ddd38bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-bootstrap-themes 3.3.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.