How to Solve NameError: name 'Email' is not defined -- app

Solution: Import the 'Email' module

To Solve the error, add the following line to the top of your code.

from app.models import Email

 

For more information:
Python app Email