How to Solve NameError: name 'views' is not defined -- home

Solution: Import the 'views' module

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

from home import views

 

For more information:
Python home views