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
For some reason none of the solutions here worked for me. python ./manage.py tellsiteid
, there was no django_site
collection, and commenting out 'django.contrib.sites'
caused weird errors.
Grabbing the ID from the shell worked for me though, detailed here:
https://gist.github.com/ielshareef/2986459 or here Site matching query does not exist
python ./manage.py shell
>>> from django.contrib.sites.models import Site
>>> Site().save()
>>> Site.objects.all()[0].id
u'4fe7aa759e654e2662000000'
Put it in settings.py
and everything worked great!