I\'m installing Django AllAuth into my project and have come across the following line in the documentation for that app (see docs here):
Add a Site f
Go the your project path where you have manage.py file and follow the following steps:
Run teh following command in your terminal
python manage.py shell
Then in the python shell type:
from django.contrib.sites.models import Site
new_site = Site.objects.create(domain='....', name='....')
print new_site.id
This printed value will be the site_id for site matching query If you are still struck, reply. I will guide you to very simple and easy steps to enjoy the beauty of django allauth.