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.
=====================
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-twitter-bootstrap-form-0.1.0.tar.gz
.
File metadata
- Download URL: django-twitter-bootstrap-form-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 835646898df3acd102079d2cd7aaf4cf10ea60e366842d0a9109e4da1132d27e |
|
MD5 | bb551e7ebe35cfc099b208a4a10587a4 |
|
BLAKE2b-256 | fd4a5dc91668623fbea5c72cb8bde6fee732f35f23fd60276653ee5aed7dd18d |