Skip to Content
Mastering Flask
book

Mastering Flask

by Jack Stouffer
September 2015
Intermediate to advanced
288 pages
5h 30m
English
Packt Publishing
Content preview from Mastering Flask

Flask WTForms

Adding forms in your application seems to be an easy task, but when you start coding the server-side code, the task of validating user input grows bigger and bigger as the form becomes more complex. Security is paramount as the data is from an untrustworthy source and is going to be entered in the database. WTForms is a library that handles server form validation for you by checking input against common form types. Flask WTForms is a Flask extension on top of WTForms that add features, such as Jinja HTML rendering, and protects you against attacks, such as SQL injection and cross-site request forgery. To install Flask WTForms and WTForms, we have:

$ pip install Flask-WTF

Note

Protecting yourself against SQL injection and cross-site ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

An Introduction to Flask

An Introduction to Flask

Miguel Grinberg
Flask Blueprints

Flask Blueprints

Joel Perras
Flask By Example

Flask By Example

Gareth Dwyer

Publisher Resources

ISBN: 9781784393656Supplemental Content