I try to get Django 1.5.1 up and running with mongoengine as a second DB backend, but failing big times.
My settings.py includes the following:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'DaTaBaSe',
'USER': 'root',
'PASSWORD': '',
'HOST': 'localhost',
'PORT': '3306',
},
'tracking': {
'ENGINE': 'django.db.backends.dummy',
'NAME': 'analytics',
}
}
I have a DB router that already takes care of assigning the right app to the mongoDB, which seems to work, as I am seeing the following error in my celery task.
File "/mypath/base.py", line 15, in complain
raise ImproperlyConfigured("settings.DATABASES is improperly configured. "
ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
Any suggestion and idea is welcome.
'django.db.backends.dummy'
is a dummy implementation Django will use when no ENGINE
is given or ENGINE
is an empty string. Every method of the backend API raises ImproperlyConfigured
(except for connection.close()
actually)