SO I created a django project and app as per the tutorial and I have all the dependencies necessarry for MongoDB Engine it all seemed to be working fine and dandy till I tried e
sudo python manage.py shell
from django.contrib.sites.models import Site
Site().save()
Site.objects.all()[0].id
u'53aa6456984edd0d5e547e03'
Put it in settings.py SITE_ID = u'53aa6456984edd0d5e547e03'
You can create your site, and then, get the id:
python ./manage.py shell
>>> from django.contrib.sites.models import Site
>>> s = Site()
>>> s.save()
and then:
python ./manage.py tellsiteid
I use manage.py syncdb
and then manage.py tellsiteid
but still display error.
I finally solve it by dropping the database and sync again.
Hope this can help someone:)