1👍
✅
Seems to be resolved by myself. Following things I have done to resolve it:
-
Remove following from
settings.py
SITE_ID = 1
and ‘django.contrib.sites'
from the INSTALLED_APPS
block
INSTALLED_APPS = [
‘django.contrib.sites'
]
-
Removed auto-generated files from migrations folder inside the apps (App in which I have imported
django.contrib.sites Models
). -
Re-run the
makemigrations
andmigrate
command. -
Everything is working fine.
Thanks.
Source:stackexchange.com