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