Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Use MongoDB URLs in your Django Application.

Project Description

This simple Django utility allows you to utilize the 12factor inspired MONGOURL_URL environment variable to configure your Django application.

This is a slight adaptation of the dj-database-url by Kenneth Reitz (http://github.com/kennethreitz/dj-database-url/). It is compatible with django-nonrel and can be used to dig up the URL setting for other purposes as well.

Usage

Configure your database in settings.py from DATABASE_URL:

DATABASES = {'default': dj_mongohq_url.config()}

Parse an arbitrary Database URL:

DATABASES = {'default': dj_mongohq_url.parse('mongodb://...')}

If you are not using Django with nonrel capabilities and merely want to dig up the MongoDB settings, use another variable:

MONGODB = dj_mongohq_url.config()

Supported databases

Support currently exists for MongoDB.

Release History

Release History

This version
History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dj_mongohq_url-0.0.3-py2-none-any.whl (4.0 kB) Copy SHA256 Checksum SHA256 py2 Wheel May 30, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting