How to use Django with MongoDB

DrWolfe picture DrWolfe · Feb 21, 2012 · Viewed 8.2k times · Source

Can someone tell me how to use Django MongoDB Engine?

I have followed the instructions here: http://django-mongodb.org/topics/setup.html

All I get is this error:

django.core.exceptions.ImproperlyConfigured: 'django_mongodb_engine.mongodb' isn't an available database backend. 
Try using django.db.backends.XXX, where XXX is one of:
    'dummy', 'mysql', 'oracle', 'postgresql', 'postgresql_psycopg2', 'sqlite3'
Error was: No module named django_mongodb_engine.mongodb.base

Answer

Jonas H. picture Jonas H. · Feb 21, 2012

Should be django_mongodb_engine, not django_mongodb_engine.mongodb.