Site matching query does not exist. Lookup parameters were {'pk': 1}Open Project Shell
python manage.py shell
Create Site Object
from django.contrib.sites.models import SiteBest Practise
Site.objects.create(pk=1, domain='example.com', name='example')
python manage.py syncdb --noinput
python manage.py migrate
python mange.py createsuperuser
No comments :
Post a Comment