### Navigation

- index
- django-bootstrap-form 2.0.6 documentation »

# Welcome to django bootstrap form’s documentation!

## Django bootstrap form

Generate twitter-bootstrap form output for django form

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

### Screenshot

### Installation

Install django-bootstrap-form with pip

    $ pip install django-bootstrap-form

### Configuration

Add ‘bootstrapform’ to INSTALLED_APPS.

    INSTALLED_APPS = (
        ...
        'bootstrapform',
        ...
    )

### Usage

    {% load bootstrap %}

    {{ form|bootstrap }}

    # or use with individual field
    {{ form.<field name>|bootstrap }} - To output individual fields

    # For horizontal forms
    {{ form|bootstrap_horizontal }}

    # Or with custom size (default is 'col-lg-2 col-sm-2')
    {{ form|bootstrap_horizontal:'col-lg-4' }}

### CHANGELOG

- 2013-8-27:

  Add support for Bootstrap 3, contributed by Nivl

- 2013-5-7:

  Add radio support for ChoiceField

# Indices and tables

- Index
- Module Index
- Search Page

### Navigation

- index
- django-bootstrap-form 2.0.6 documentation »