How to Solve NameError: name 'Project' is not defined -- api

Solution: Import the 'Project' module

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

from api.models import Project

 

For more information:
Python api Project