Custom validations in Python Flask

in Project HOPE4 years ago (edited)

validaciones.png

Hello steemit community, today I bring you another Flask Python programming topic about form validations.

Form validations allow web pages to maintain control of the data that users send to the server; thus maintaining security in the system, as well as correct assistance to the needs of users.

In Flask , the web microframework based on PYTHON . We can create custom validations; defining within the parameters of the function, the attributes FORM and FIELD. Giving the possibility of creating logic in this function and, easily, being able to assign it to the validation parameters in the creation of the form fields.

Sort:  
 4 years ago 

Cheers, @oswscript.

With this type of articles, you will not get traffic, since practically nobody will be able to leave you a comment. And what you propose does not allow to generate controversy.

Are you really a programmer at Phyton? You don't seem like that.
Let me tell you that (if that code was written by you) in the "Validation of the Maximum" and in the "Validation of the Minimum" you used the same logical statement when evaluating the length ("<= 3").

Excuse me if I am too sincere.

Coin Marketplace

STEEM 0.33
TRX 0.11
JST 0.034
BTC 66438.74
ETH 3268.32
USDT 1.00
SBD 4.39