[Flask] Data validation

Ben Duncan linux4ms at gmail.com
Mon Sep 30 09:31:02 EDT 2019

Ok, I got how to do data validation using wtforms, as well as preventing

Now, how is the procedure I need to do if the data fails SERVER validation?

For example, it passes 'form.validate()" but testing within that 'if'
reveals bad data. I want to keep the existing data in the form, but reject
the form because
some value was not correct, and set a error message and re display the form

As always thanks.

*Ben Duncan*
DBA / Chief Software Architect
Mississippi State Supreme Court
Electronic Filing Division
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20190930/b63458f6/attachment.html>

More information about the Flask mailing list