can any body suggest me any idea about how can i compare two fields in django.
as i have two password fields in my forms.py file.
now i want to compare the two fields and if both are same then save the user in database
else append an error message to reenter the values again.
thanks
Override your form’s
cleanmethod:See the docs for more info.
You should also probably ALSO add some Javascript to check this on the client side – client side validation is no subsitute for server-side validation, but it is more responsive to the user and saves bandwidth.