Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
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 ( It is compatible with django-nonrel and can be used to dig up the URL setting for other purposes as well.


Configure your database in 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

This version
History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.0 kB) Copy SHA256 Hash SHA256
Wheel py2 May 30, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate