How to Solve NameError: name 'GenericSitemap' is not defined -- django
Erorr: name 'GenericSitemap' is not defined
NameError: name 'GenericSitemap' is not defined
Solution: Import the 'GenericSitemap' module
# Add the following line to the top of your code
from django.contrib.sitemaps import GenericSitemap
For more information:
django GenericSitemap