{% extends 'base.html' %} {% block main %}
Here we are using the Flask-WTF library to create and process a form. Flask-WTF also comes with CSRF protection and validation classes.