###SITENAME/DOMAIN NAME ON DJANGO
from django.contrib.sites.models import Site
site = Site()
site.domain = 'example.com'
site.name = 'My website'
site.save()
###SITENAME/DOMAIN NAME ON DJANGO
from django.contrib.sites.models import Site
site = Site()
site.domain = 'example.com'
site.name = 'My website'
site.save()