I'd like to use Django with MongoDB on Heroku. In the their document, Getting Started with Django on Heroku/Cedar : Postgres Database Config, says that some code is appended to settings.py
to use the DATABASE_URL
.
Is there any way to avoid this ? Because the DATABASES
needs to be django_mongodb_engine
here, also with other settings, e.g. (example dragged from compSocSci)
DATABASES = {
'default': {
'ENGINE': 'django_mongodb_engine',
'NAME': 'heroku_app1234567',
'USER': 'heroku_app1234567',
'PASSWORD': 'abcdefghijklmnopqrstuvwxyz',
'HOST': 'ds031117.mongolab.com',
'PORT': '31117',
}
}