![arjoonn sharma](/assets/img/avatar_default.png)
Doing it once reduces complexity making the code faster while rendering. Also since the check is done on a high level like templates, it is slower than the native python if condition. Thus the need to reduce checks on the higher levels.
Django bootstrap form
Twitter Bootstrap for Django Form.
A simple Django template tag to work with Bootstrap
Install
Add to INSTALLED_APPS
:
# myapp/settings.py
- INSTALLED_APPS = [
'bootstrapform', # ...
]
Usage
Use it like this, simple.
{% load bootstrap %}
{{ form|bootstrap }}
Demo
Checkout this Demo site to see it in action.
Description
Languages
HTML
59.1%
Python
40.9%