Introduction to Forms and Requests
Explore how to handle forms in Flask by using the request object to create functional login templates and routes. Learn to manage GET and POST requests and connect your forms to view functions for essential web app development.
Handling forms in Flask
The Flask package itself does not provide us a way to handle forms. There are two ways that developers deal with this:
- Via the
requestobject - Via the
Flask-WTFextension
In this lesson, we will briefly discuss the first option.
Using the request object
Here, we will take the example of a simple login form. We ...