Re: Django forms validation

2016-05-06 Thread Babatunde Akinyanmi
Good morning Lekan. My response is inline... On May 6, 2016 4:21 AM, "Lekan Wahab" wrote: > > Hello Babatunde, > Thank you for answering my question. > I have actually done that. > But Django throws and error whenever I I instantiate form/for_class to ContactForm(request. POST). > It says it's exp

Re: Django forms validation

2016-05-05 Thread Lekan Wahab
Hello Babatunde, Thank you for answering my question. I have actually done that. But Django throws and error whenever I I instantiate form/for_class to ContactForm(request. POST). It says it's expected only a single argumen. but two was provided. On 05 May 2016 10:36 PM, "Babatunde Akinyanmi" wrot

Re: Django forms validation

2016-05-05 Thread Babatunde Akinyanmi
Hello Lekan. I have responded inline but my answer might not be a complete fix. On May 5, 2016 4:56 PM, "Lekan Wahab" wrote: > > Hello, > Please, i have a model form in forms.py which am trying to validate and update my database with. However, for some reason the form is not being validated.

Django forms validation

2016-05-05 Thread Lekan Wahab
Hello, Please, i have a model form in forms.py which am trying to validate and update my database with. However, for some reason the form is not being validated. I have tried everything i could think of. It just reloads the page. views.py > from django.shortcuts import render > from information.f

Re: Binding hand written HTML(form) or forms that are not created through djnago forms to django forms validation errors

2015-03-10 Thread Scot Hacker
On Tuesday, March 10, 2015 at 4:10:48 AM UTC-7, Mahesh Thipparthi wrote: > > Hi All, > Kindly help me with following questions. > > Use case is this: > 1. i have created a form manually ( not generated through django forms) > 2. I am calling a Django view function upon submission. > 3.

Re: Binding hand written HTML(form) or forms that are not created through djnago forms to django forms validation errors

2015-03-10 Thread Vijay Khemlani
Unbound forms have no validation errors as they haven't been filled yet by the user. I think you are trying to solve the wrong problem. Why are you creating your form manually in the first place? Your HTML markup is easy to do with Django forms and packages suck as crispy forms On Tue, Mar 10, 20

Binding hand written HTML(form) or forms that are not created through djnago forms to django forms validation errors

2015-03-10 Thread Mahesh Thipparthi
Hi All, Kindly help me with following questions. Use case is this: 1. i have created a form manually ( not generated through django forms) 2. I am calling a Django view function upon submission. 3. validating the field through django form as i ensured that form names are same. question

Re: django forms validation with choice and m2m fields

2009-04-23 Thread Timboy
Thank you very much Alex! On Apr 23, 9:28 pm, Alex Gaynor wrote: > On Fri, Apr 24, 2009 at 12:25 AM, Timboy wrote: > > > Does this data get checked to make sure that it is what was on the > > form? > > > If I have a list of choices 1,2,3 and someone modifies the form to add > > a # 4 and choose

Re: django forms validation with choice and m2m fields

2009-04-23 Thread Alex Gaynor
On Fri, Apr 24, 2009 at 12:25 AM, Timboy wrote: > > Does this data get checked to make sure that it is what was on the > form? > > If I have a list of choices 1,2,3 and someone modifies the form to add > a # 4 and chooses that will django forms catch it or do I need to make > sure on every one of

django forms validation with choice and m2m fields

2009-04-23 Thread Timboy
Does this data get checked to make sure that it is what was on the form? If I have a list of choices 1,2,3 and someone modifies the form to add a # 4 and chooses that will django forms catch it or do I need to make sure on every one of my fields that the entered value is what was in the list? TI