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