Re: Django Forms and Twitter Bootstrap - Add fieldset, div wrapper and CSS labels to Django Forms?

2011-12-12 Thread Tomek Paczkowski
Check out this little tool: http://pypi.python.org/pypi/django-widget-tweaks Here's how I use it: https://github.com/oinopion/twitz/blob/master/templates/statuses/_status_update_form.html -- You received this message because you are subscribed to the Google Groups "Django users" group. To view

Re: Django Forms and Twitter Bootstrap - Add fieldset, div wrapper and CSS labels to Django Forms?

2011-12-12 Thread Ezequiel Bertti
See this example: https://github.com/ebertti/django-registration-bootstrap have a example using django-registration On Mon, Dec 12, 2011 at 07:37, Lukas Vinclav wrote: > Hi, > > I am using Twitter Bootstrap in Django for a long time. Here are > directions how to

Re: Django Forms and Twitter Bootstrap - Add fieldset, div wrapper and CSS labels to Django Forms?

2011-12-12 Thread Lukas Vinclav
Hi, I am using Twitter Bootstrap in Django for a long time. Here are directions how to achieve correct result. 1. Create new file for displaying forms in templates directory(e.g. forms.html) 2. In forms.html write the form displaying logic. This is just an example. You have to set bootstrap's

Django Forms and Twitter Bootstrap - Add fieldset, div wrapper and CSS labels to Django Forms?

2011-12-11 Thread Victor Hooi
Hi, I'm attempting to use Django forms with Twitter's CSS library Bootstrap (http://twitter.github.com/bootstrap/): The default form outputted by {{ form.as_p }} doesn't seem to be enough to be formatted nicely with Bootstrap. You need to add a , as well as class="control-label" to each .