[Flask] Data validation

Ben Duncan linux4ms at gmail.com
Mon Sep 30 15:55:24 EDT 2019


Never mind , found the answer on page 198 of the book "flask by Example"

HOORAY ...

Man, I LOVE flask !!!!

*Ben Duncan*
DBA / Chief Software Architect
Mississippi State Supreme Court
Electronic Filing Division


On Mon, Sep 30, 2019 at 8:31 AM Ben Duncan <linux4ms at gmail.com> wrote:

> Ok, I got how to do data validation using wtforms, as well as preventing
> CSRF.
>
> 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/8a59d262/attachment.html>


More information about the Flask mailing list