Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install django-forms-bootstrap

How to install django-forms-bootstrap

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install django-forms-bootstrap
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
2.0.3.post1
2.0.3.post2Never BuiltWhy not?
2.0.3.post1 Available View build log
2.0.3 Available View build log
Windows (64-bit)
2.0.3.post1
2.0.3.post2Never BuiltWhy not?
2.0.3.post1 Available View build log
2.0.3 Available View build log
Mac OS X (10.5+)
2.0.3.post2 Available View build log
2.0.3.post1 Available View build log
2.0.3 Available View build log
Linux (32-bit)
2.0.3.post2 Available View build log
2.0.3.post1 Available View build log
2.0.3 Available View build log
Linux (64-bit)
2.0.3.post2 Available View build log
2.0.3.post1 Available View build log
2.0.3 Available View build log
 
Author
License
MIT
Lastest release
version 2.0.3.post2 on Aug 3rd, 2013

Simple Twitter Bootstrap filter for Django forms. Extracted from the bootstrap theme for Pinax.

Quick Start

Include "django-forms-bootstrap" in your requirements file and "django_forms_bootstrap" in your INSTALLED APPS.

Make sure your template loader finders includes app directories.

To style forms, add the following to the top of your template

{% load bootstrap_tags %}

and include your form using something like the following markup:

<form>
    <legend>My Form</legend>
    {% csrf_token %}
    {{ form|as_bootstrap }}
    <div class="form-actions">
      <a href="#back" class="btn">Go back</a>
      <button type="submit" class="btn btn-primary">Save changes</button>
    </div>
</form>

Specifying form layouts

Bootstrap includes styles for four types of forms. To change the display of your form, add one of the following class attributes to your form tag:

Name Class Description
Vertical (default) .form-vertical Stacked, left-aligned labels over controls
Horizontal .form-horizontal Float left, right-aligned labels on same line as controls
Inline .form-inline Left-aligned label and inline-block controls for compact style
Search .form-search Extra-rounded text input for a typical search aesthetic

License & Attribution

Django Forms Bootstrap is released under the MIT license. It does not include any styles or scripts from the Twitter Bootstrap project.

Subscribe to package updates

Last updated Aug 3rd, 2013

Download Stats

Last month:3

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.