[Django]-How to use Django with MongoDB

4👍

Should be django_mongodb_engine, not django_mongodb_engine.mongodb.

1👍

The problem is that the location where you downloaded the package is not in your PYTHONPATH, so django cannot import it.

If you followed those instructions, you need to run your application from the virtualenv you created (myproject in the example).

Or, you need to add it to your PYTHONPATH to make sure django can import it.

You should be able to run the python interactive shell and execute import django_mongodb_engine.mongodb without any errors.

-1👍

I found the answer with here: https://stackoverflow.com/questions/5699521/django-mongodb-i-cannot-update

Essentially one will need to install:

•django-mongodb-engine

•pymongo

•django-nonrel

•djangotoolbox

•mongoengine

Leave a comment