django-heroku-mongoify 0.1.0

https://secure.travis-ci.org/dirn/django-heroku-mongoify.png?branch=master

django-heroku-mongoify provides a user-friendly method to configure Django projects on Heroku to use MongoDB.

Inspired by the work of Randall Degges.

Usage

In settings.py:

from mongoify import mongoify
from pymongo import Connection
db = Connection(mongoify(default='mongodb://localhost'))

Friendly MongoDB for Django on Heroku

mongoify.mongoify(default=None)

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:

  • MongoHQ (MONGOHQ_URL)
  • MongoLab (MONGOLAB_URI)

Other MongoDB hosts can be utilized by passing the URL as default:

mongoify(default='mongodb://localhost')

New in version 0.1.0.

Indices and tables

Table Of Contents

This Page