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

Solution: Import the 'views' module

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

from tutorial.quickstart import views

 

For more information:
Python tutorial views