How to Solve NameError: name 'Author' is not defined -- myapp

Solution: Import the 'Author' module

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

from myapp.models import Author

 

For more information:
Python myapp Author