So i just want my sitemap.xml to work in production.
I have included this module in INSTALLED_APPS:
'django.contrib.sites',
I have declared SITE_ID:
SITE_ID = 1
I defined domain name 'mydomain.com' in sites model which is exacly the domain my site running on.
I restarted the server
And i still get 'django.contrib.sites.models.Site.DoesNotExist: Site matching query does not exist' error
I don't get this error when i run on localhost.