FLASK WTForms basic introduction and use

1.WTForms description:

Flask-WTF integrated WTForms, and with csrf protected forms and global security token csrf function.
Every class we create in the establishment of a form are inherited in flask_wtf in FlaskForm, and FlaskForm inherited WTForms in forms.

Role: This plug-in effect 1: 1 2. do form validation template rendering  

           2. Installation: pip install flask-wtf

 

2. Forms Basic authentication:

    

Guess you like

Origin www.cnblogs.com/yingxiongguixing/p/12008444.html