Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Twitter-bootstrap form output for Django form
Python
branch: master

This branch is 3 commits ahead of juanpex:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bootstrapform
.gitignore
LICENSE
MANIFEST.in
README.rst
setup.py

README.rst

Django bootatrap form

Generate twitter-bootstrap form output for django form

A django template tag to work with twitter bootstrap ( http://twitter.github.com/bootstrap/ )

Installation

$ pip install django-bootstrap-form

for people who still use older version before twitter bootstrap 2.0

$ pip install django-bootstrap-form==0.2

Configuration

Add 'bootstrapform' to INSTALLED_APPS.

Usage

{% load bootstrap %}

{{ form|bootstrap }}

{{ form|bootstrap:"css_class1 css_class2" }} - To add both classes to all fields in the form

{{ form.<field name>|bootstrap:"css_class1 css_class2" }} - To output individual fields and add css classes to the input/textarea/select

Something went wrong with that request. Please try again.