How to Solve NameError: name 'Contact' is not defined -- myapp
Solution: Import the 'Contact' module
To Solve the error, add the following line to the top of your code.
from myapp.models import Contact
For more information:
Python myapp Contact