I installed and configured a Django/MongoDB like this way !
pip install virtualenv
source myproject/bin/activate
pip install hg+https://bitbucket.org/wkornewald/django-nonrel
pip install hg+https://bitbucket.org/wkornewald/djangotoolbox
pip install git+https://github.com/django-nonrel/mongodb-engine
All these operations are successful !
now , when I changed the settings.py file like this way :
DATABASES = {
'default': {
'ENGINE': 'django_mongodb_engine', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'mong_db', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
The mind-bending error occurs:
Error was: No module named django_mongodb_engine.base
Obviously the django_mongodb_engine successful installed. but why this error will appear?
btw,Forgive my poor English !
I went through the same steps you did, then opened a Python shell:
But if I do:
… it works.
Can you set DJANGO_SETTINGS_MODULE and try importing django_mongodb_engine.base in the Python shell?