Skip to main content

All Questions

0 votes
0 answers
414 views

Bootstrap Form Control - Django Form HTML

I've been having trouble adding HTML for Form Control to my Django form. I know (from other features) that I have Bootstrap properly integrated into the project. No fields are showing when I try to ...
user7518095's user avatar
3 votes
3 answers
3k views

How to filter the form in django template

I am trying a form POST using django with django-bootstrap3. The form has those fields: name, email, phone, company, subject, and message. The templates code is as follows. Question: If I do not want ...
Frank Tang's user avatar
2 votes
1 answer
2k views

Django-Bootstrap3 issues with inline form layout

Using the following code to render a form: <div class="row"> <div class="col-lg-6 col-lg-offset-3"> <form action="{% url 'chartboard:chart_url' %}" method="post" class="form"&...
pkaramol's user avatar
  • 18.5k
6 votes
3 answers
10k views

Display Form Field based on other Fields within the Django Form

I am trying to create a way to only display certain fields within a django form based on the bound data of another field within that same form. I'm familiar with the idea of form.field.bound_type but ...
Obj3ctiv3_C_88's user avatar
2 votes
1 answer
2k views

How can I manipulate the form-group and controls divs with django-crispy-forms?

I'm using Django 1.8 and Crispy-Forms with Twitter Bootstrap 3 Here's what I have at the moment: self.helper.layout = Layout( ... 'address', StrictButton('Find address', id='find_address'...
StringsOnFire's user avatar
3 votes
1 answer
2k views

No error message shown with crispy forms and bootstrap 3

I have spent hours today trying out and googling, I just can't find the solution for my problem: I use crispy forms in version 1.4.0 and Bootstrap3. I have a CreateView as shown below which displays ...
Marc's user avatar
  • 167
1 vote
1 answer
179 views

Django Form Package Application to Bootstrap 3

How would you convert Django Form from Package Application to Bootstrap 3. In my case I am working with forms from django-allauth. I would like Signup / Signin forms converted to Bootstrap3. I was ...
Bob's user avatar
  • 21
3 votes
1 answer
810 views

django-crispy-forms: form_class appears but label_class and field_class does not

This is my first time using crispy-forms and I am trying to make a horizontal crispy-form based on a ModelForm using bootstrap 3. In the output to the template "horizontal-form" shows up but "...
twoifiplay's user avatar
0 votes
1 answer
377 views

How to configure Bootstrap3 form for use with Django form

I posted a similar question previously, but the answers did not lead me to a solution. I believe the solution now lies within my template, which many answers did not seem to address. Anyways, I ...
metersk's user avatar
  • 12.3k
0 votes
1 answer
334 views

Form not submitting even with form action parameter explicitly set

I don't usually have a lot of trouble with django form submission, but i can't seem to figure out what am not doing right for my code to work. Done some reading here at stackoverflow but no luck. In ...
Suziemac Tani's user avatar
6 votes
1 answer
6k views

BooleanField checkbox not render correctly with crispy_forms using bootstrap

I am using crispy_forms and FormHelper. I have a model field declared as: active = models.BooleanField(default=True) And in my ModelForm, I have tried both the following in my Layout: self....
Joe Lones's user avatar
  • 499
0 votes
1 answer
1k views

creating a form with many rows and columns with bootstrap

I have a django template which i want it to present a model form but with different columns and rows. More specifically i want them to be in lets say a grid of three columns and the last row will have ...
Apostolos's user avatar
  • 8,001