How to Solve NameError: name 'SQLAlchemy' is not defined -- flask_sqlalchemy
Erorr: name 'SQLAlchemy' is not defined
NameError: name 'SQLAlchemy' is not defined
Solution: Import the 'SQLAlchemy' module
# Add the following line to the top of your code
from flask_sqlalchemy import SQLAlchemy
For more information:
flask_sqlalchemy SQLAlchemy