Python noob, as in this is my first project, so excuse my unfamiliarity.
The site was working very well until I clicked \"log out\" on my app. After that, the websit
I see answers to create a new site and reference id for that. But if you already have a site or somehow you deleted and created the site again from UI then the id keeps on incrementing. To solve this you can get the id as follows:
python manage.py shell
from django.contrib.sites.models import Site
print(Site.objects.get(name='example.com').id)
Get the id you get here into setting.py . Eg.
SITE_ID = 8
Basically ID in table corresponding yo tour site and in the settings.py should match.