2👍
✅
Just as @karthikr stated
first run
$> ./manage.py shell
>>> from django.contrib.sites.models import Site
>>> site = Site.objects.create(domain='example.com', name='example.com')
>>> site.save()
then lookup the Site-Id:
>>>Site.object.all()[0].pk
Use this value in settings.py
for the value of SITE_ID
Don’t forget to restart django.
Source:stackexchange.com