How to Solve NameError: name 'Publisher' is not defined -- books

Solution: Import the 'Publisher' module

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

from books.models import Publisher

 

For more information:
Python books Publisher