Creating Forms using Flask-WTF and WTForms
In this lesson, we will learn how to create forms using the Flask-WTF and WTForms modules.
We'll cover the following...
We'll cover the following...
In larger applications, extra components such as the validation logic for email and password fields can easily become boiler-plate and hard to read. For this purpose, some libraries are used that can process them better.
Introduction to
WTForms
WTFormsis a library that makes form handling easy. It handles not only form validation but also form rendering at the front-end. Additionally,WTFormsis not just limited toFlask.
Introduction to
Flask-WTF
Flask-WTFis aFlaskspecific library that integrates theWTFormlibrary withFlask. It acts as an add-on toWTFormsand adds some extra components, such as security.
In this lesson, we will be using ...