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

Erorr: name 'views' is not defined

NameError: name 'views' is not defined

Solution: Import the 'views' module

# Add the following line to the top of your code
from django.contrib.sitemaps import views

 

For more information:
django views