skillfed

django-bootstrap-form

django-bootstrap-form

django-bootstrap-form v3.4 195.3K downloads/30d#9,817 on PyPI558
Permissive license MIT DORMANT released

What it is and what it does

django-bootstrap-form is a Django template tag library that automatically renders form fields with Bootstrap CSS classes and markup. It provides three template filters—bootstrap, bootstrap_inline, and bootstrap_horizontal—to style forms in different layouts without writing custom HTML for each field.

The package is a thin wrapper around Django's form rendering system, designed to integrate Bootstrap styling into templates with minimal code. It has no runtime dependencies and is installed as a Django app. However, the project is dormant: the latest release was 2018-03-15, and the classifiers declare support only for Python 2.7 and Python 3.4, 3.5, 3.6, all end-of-life versions. Using it on modern Python and Django versions carries compatibility risk.

Use it for:

  • Quickly style a Django form with Bootstrap classes without writing custom form templates for each field.
  • Convert an existing Django form to a Bootstrap-styled vertical, inline, or horizontal layout in a template.
  • Prototype a Django admin or user-facing form with Bootstrap styling for rapid development.
  • Maintain a legacy Django project that already uses this package and Bootstrap.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Renders Django form fields as Bootstrap-styled HTML using a simple template tag, supporting vertical, inline, and horizontal form layouts.

No, unless you are maintaining a legacy Django project already using this package. The package is dormant (last release 2018-03-15), declares support only for end-of-life Python versions (2.7, 3.4, 3.5, 3.6), and offers no assurance of compatibility with modern Django or Python. Modern alternatives or direct Bootstrap integration in templates are safer choices for new projects.

Install

django-bootstrap-form on PyPI

pip

pip install django-bootstrap-form

uv

uv add django-bootstrap-form

poetry

poetry add django-bootstrap-form

Installing django-bootstrap-form

Before you install

High install friction: the package is dormant (last commit 2024-03-07, 3074 days since release) and declares support only for Python 2.7 and Python 3.4, 3.5, 3.6, all of which are end-of-life.

License in practice

MIT license is permissive and poses no restrictions on use, modification, or distribution.

Quickstart

# Install
pip install django-bootstrap-form==3.4

# In Django settings.py
INSTALLED_APPS = [
    'bootstrapform',
    # ...
]

# In template
{% load bootstrap %}
<form>
  {% csrf_token %}
  {{ form|bootstrap }}
  <button type="submit">Submit</button>
</form>

Requires Django and a compatible Python version; package classifiers list only Python 2.7 and 3.4, 3.5, 3.6, all end-of-life. Compatibility with modern Python and Django versions is unverified.

Verify before relying

  • Whether this package works with current Django versions despite classifiers listing only Python 3.4–3.6
  • Whether Bootstrap 3 (implied by the package age) is still suitable for your project or if Bootstrap 4/5 support is needed
  • Current maintenance status and whether security patches or compatibility updates are planned

Package facts

License MIT (permissive)
Python support not specified
Install friction high — source build required
Runtime dependencies none
Maintenance dormant — 3,074 days since the last release
Last repo commit
First released
Downloads 195,349/month — #9,817 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: django-bootstrap-form-3.4.tar.gz

Keywords: bootstrap

Environment :: Web EnvironmentFramework :: DjangoProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Topic :: Software Development :: Libraries :: Python Modules

Tags

django form bootstrap stylingbootstrap form template tagdjango bootstrap form renderingbootstrap css form integrationdjango form html templatesbootstrap form layouts django
django-formsbootstrap-csstemplate-tags

More Python Modules packages