Skip to main content

Django Bootstrap Fields

django-bootstrap-fields provides you with a {% dbs_field %} tag that allows you to easily render Django form fields with complete Bootstrap html markup. Works with Bootstrap 3 and 4.

Installation

Install latest stable version into your python path using pip:

pip install -U django-bootstrap-fields

Add dbs_fields to your INSTALLED_APPS in settings.py:

INSTALLED_APPS = (
    ...
    'dbs_fields',
)

Templates

You can set your default template pack for your project using the DBS_TEMPLATES Django settings variable:

DBS_TEMPLATES = 'bootstrap4'  # Options: 'bootstrap3', 'bootstrap4', 'bootstrap4custom'

Usage

One tag to rule them all! django-bootstrap-fields only comes with one easy to use tag that will detect which field is being rendered and style it accordingly.

{% dbs_field field inline=True sr_label=True prepend="$" append=".00" %}

Example

{% extends "base.html" %}
{% load dbs_tags %}

{% block content %}

<form action="." method="post">
    {% csrf_token %}
    {% for field in form %}
        {% dbs_field field %}
    {% endfor %}
</form>

{% endblock content %}

Preview

Preview

Metadata

Release files for django-bootstrap-fields 0.1.6

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-fields 0.1.6
File Size Uploaded Provenance Actions
django-bootstrap-fields-0.1.6.tar.gz 653.0 kB Without provenance Details for django-bootstrap-fields-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-bootstrap-fields 0.1.6
File Interpreter ABI Platform Actions
django_bootstrap_fields-0.1.6-py3-none-any.whl Python 3 none any Details for django_bootstrap_fields-0.1.6-py3-none-any.whl

Total release size: 877.4 kB

Release files / django-bootstrap-fields-0.1.6.tar.gz

Download URL django-bootstrap-fields-0.1.6.tar.gz
Size 653.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6aeade0114e2aec49fbafac7d65ecdd53116b23452e3810daca827e828066219
BLAKE2b-256 checksum
How to use checksums
f4426de700c7e0f5b1ad5f5db073c30f667524e72103d8a3a1403fe8faf745a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4

Release files / django_bootstrap_fields-0.1.6-py3-none-any.whl

Download URL django_bootstrap_fields-0.1.6-py3-none-any.whl
Size 224.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66d938fe9edcbed0319910eba60573abcdc3c468df8b88e87807515195760e99
BLAKE2b-256 checksum
How to use checksums
f1ca054a5e4f970b73dfdf82c2a587242f6f5f62ff0feda20d2a9a808a387ba8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4

Security for django-bootstrap-fields 0.1.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.

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