Skip to main content
https://badge.fury.io/py/django-bootstrap-select.svg https://travis-ci.org/voxy/django-bootstrap-select.svg?branch=master https://codecov.io/gh/voxy/django-bootstrap-select/branch/master/graph/badge.svg

A Django wrapper for the Bootstrap Select library

Documentation

The full documentation is at https://django-bootstrap-select.readthedocs.io.

Quickstart

Need to render an image in a select box?

Turn this:

docs/img/select_box.png

Into this:

docs/img/bootstrap_select_box.png

Install Django Bootstrap Select:

pip install django-bootstrap-select

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'bootstrap_select.apps.BootstrapSelectConfig',
    ...
)

Using it in a form:

def get_choices():
    choices = (('face.jpg', escape('<img src="path-to-face.jpg"/>'),)
    return choices

class IconForm(forms.Form):
    icon = forms.URLField(widget=BootstrapSelect(choices=get_choices()))

Features

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

History

0.1.0 (2017-08-20)

  • First release on PyPI.

Metadata

Release files for django-bootstrap-select 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-bootstrap-select 0.1.3
File Size Uploaded
django-bootstrap-select-0.1.3.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-bootstrap-select 0.1.3
File Interpreter ABI Platform
django_bootstrap_select-0.1.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.0 kB

Release files / django-bootstrap-select-0.1.3.tar.gz

Download URL django-bootstrap-select-0.1.3.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3b10c9089a1c54b20872388d24a66ed3f8b0c011a497b2f0b40f378bae998087
BLAKE2b-256 checksum
How to use checksums
93a85ceaa9518ced73b264491c7963137608ce1c7cb20a9c282ad85147cef413
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_bootstrap_select-0.1.3-py2.py3-none-any.whl

Download URL django_bootstrap_select-0.1.3-py2.py3-none-any.whl
Size 6.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6f9fa924ed11f6d58e73e348ee36e0d27d125f9ce56fbb0b6248caf300ae5e9a
BLAKE2b-256 checksum
How to use checksums
2176ab5fbeb941483a9f672ee24dd611d1c2a1fcb6a38cb9b9572bb73c8b1b92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page