Python - How to import 'Site' -- django

Import Site

To import Site, Add the following line to the top of your code.

from django.contrib.sites.models import Site

 

For more information about Site:
django Site