Hi,
If you're unsure what markup should look a like, you can create initial
HTML as you have done it with form.as_p (or whatever you used to make
working form). Then open then source of page and copy to and start
applying bootstrap CSS/html tags/attributes.
You should then get working form.
On 21.06.2016 00:02, Ikram Ulhaq wrote:
sir i want to design a custom form in django that will store data in
database...i done this with built in django forms but i can't be able
to design with bootstarp or css. data not inserted if i create my own
custom form like
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1"
placeholder="Email">
</div>
</div>
<div class="col-md-4 col-md-offset-1">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1"
placeholder="Email">
</div>
</div>
</div>
<button class="btn btn-info">some button</button>
<div class="col-md-4">
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<select class="form-control">
<option>aa</option>
</select>
</div>
</div>
On Monday, June 20, 2016 at 4:56:29 PM UTC+5, Ikram Ulhaq wrote:
Hi everyone!
i am new in django and want to design custom form in bootstarp
that can use to send data to database.i made form successfully but
values not inserted in database.please help
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/0872af0f-c81f-42f9-998f-89a60ec390aa%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/0872af0f-c81f-42f9-998f-89a60ec390aa%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Jani Tiainen
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/57690AE5.7080004%40gmail.com.
For more options, visit https://groups.google.com/d/optout.