django-heroku-mongoify provides a user-friendly method to configure Django projects on Heroku to use MongoDB.
Inspired by the work of Randall Degges.
In settings.py:
from mongoify import mongoify
from pymongo import Connection
db = Connection(mongoify(default='mongodb://localhost'))
Friendly MongoDB for Django on Heroku
Returns URL based on environment settings.
Parameters: | default (str.) – A URL for a MongoDB database. |
---|---|
Returns: | dict – A URL that can be used for a pymongo.Connection. |
Supported providers:
Other MongoDB hosts can be utilized by passing the URL as default:
mongoify(default='mongodb://localhost')
New in version 0.1.0.