Hi Sir,
Thank you. ! It's really help full.. Will try to do it
On 1 Nov 2016 3:15 pm, "ludovic coues" wrote:
> You need some kind of ajax.
> Once the user have entered their email, send a request to your django
> app with only that email. Django check if the email exist and send a
> reply with y
You need some kind of ajax.
Once the user have entered their email, send a request to your django
app with only that email. Django check if the email exist and send a
reply with yes or no.
2016-11-01 3:30 GMT+01:00 pradam programming :
> Thank you sir for the reply..
> But I am using HTML forms th
Thank you sir for the reply..
But I am using HTML forms then what should I do...? I want error message
should display instantly when user enter existing mail id..!
On 1 Nov 2016 12:05 am, "Andromeda Yelton"
wrote:
> If your model has the uniqueness constraint, you should get a form error
> mess
If your model has the uniqueness constraint, you should get a form error
message automatically. If you don't want your model to have that constraint
but you still want your form to throw an error message, you can add a
clean_ and a clean_ function
that check for uniqueness and raise ValidationError
Hi,
Please I need an advice on the best approach to take on the following
issues.
I have create a form to save user details like first name,last
name,email,mobile number etc...
1.Now I need to show error message (In Models i gave email and mobile no
field as unique = True) when user enter a email
5 matches
Mail list logo