Django MongoDB Engine error when running tellsiteid Django MongoDB Engine error when running tellsiteid django django

Django MongoDB Engine error when running tellsiteid


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


If you do not need the sites functionality (which is very probable) simply turn off django.contrib.sites app and it will fix MongoDB issues related to the SITE_ID:

INSTALLED_APPS = (       (...)    # 'django.contrib.sites',  # Comment this out    (...))


You haven't created any Site yet. Run manage.py syncdb to create one.