Skip to main content

Twitter Bootstrap Form

Project description

django-twitter-bootstrap-form
=====================

Implementation of Twitter Bootstrap to Django

Installation
-------------

```
$ pip install django-twitter-bootstrap-form
```

Add new applications at the end of INSTALLED_APPS in your settings.py.

```python
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',

'twitter_bootstrap_form',
)
```

Usage
---------

```
{% load twitter_bootstrap_form %}

{% block content %}
<div class="container">
<div class="row">
<div class="span12">
<form method="post" class="form-horizontal">
{{ form|as_bootstrap }}
</form>
</div>
</div>
</div>
{% endblock %}
```

Features
---------

1. Supported django-form-utils fieldsets.
2. Addional classes for form items.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-twitter-bootstrap-form, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size django-twitter-bootstrap-form-0.1.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page