Skip to main content

Automatic Django database configuration on Heroku.

Project description

# django-heroku-postgresify

Automatic Django database configuration on Heroku.

![What if configuring PostgreSQL is really easy?](

## Install

To install ``django-heroku-postgresify``, simply run
``pip install django-heroku-postgresify`` and you'll get the latest version
installed automatically.

## Usage

Modify your Django ```` file, and set:

``` python
from postgresify import postgresify

DATABASES = postgresify()

That's it.

Depending on the Heroku PostgreSQL databases you've got installed, your
``DATABASES`` configuration will automatically be setup to use them.

For example, let's assume you've got the following environment variables set on
Heroku (you can view the list of all environment variables by running ``heroku


Your ``DATABASES`` setting would be:

``` python
'default': {
# DATABASE_URL configs here
# SHARED_DATABASE_URL configs here
'BLUE': {
'RED': {

## References

If you're confused, you should probably read:

- [Heroku's Getting Started Guide](
- [Deploy Django's PostgreSQL Section](

## Tests

[![Build Status](](

Want to run the tests? No problem:

``` bash
$ git clone git://
$ cd django-heroku-postgresify
$ python develop
$ pip install -r requirements.txt # Install test dependencies.
$ nosetests
Ran 13 tests in 0.166s


Project details

Download files

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

Files for django-heroku-postgresify, version 0.4
Filename, size File type Python version Upload date Hashes
Filename, size django-heroku-postgresify-0.4.tar.gz (75.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page