Complete the code to import the Flask extension for database handling.
from flask_sqlalchemy import [1]
The Flask extension for database handling is called SQLAlchemy. You import it from flask_sqlalchemy.
Complete the code to initialize the Flask-Mail extension in your app.
from flask_mail import Mail mail = [1]()
The Flask-Mail extension provides the Mail class to create a mail instance.
Fix the error in the code to correctly register the Flask-Login extension.
from flask_login import LoginManager login_manager = LoginManager() login_manager.[1](app)
The correct method to initialize Flask extensions with the app is init_app.
Fill both blanks to create a Flask-WTF form class with a submit button.
from flask_wtf import FlaskForm from wtforms import [1] class MyForm(FlaskForm): submit = [2]('Submit')
You import SubmitField from wtforms to create a submit button. The first blank is the import of SubmitField, and the second blank is the use of SubmitField to create the button.
Fill all three blanks to create a Flask-Migrate migration setup.
from flask_migrate import [1] migrate = [2]() migrate.[3](app, db)
Flask-Migrate uses the Migrate class. You create an instance of it, then call init_app to connect it to your Flask app and database.