Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here


Automatic Django database configuration on Heroku.

Subscribe to updates I use django-heroku-postgresify

Statistics on django-heroku-postgresify

Number of watchers on Github 44
Number of open issues 0
Average time to close an issue about 9 hours
Main language Python
Average time to merge a PR about 1 hour
Open pull requests 0+
Closed pull requests 0+
Last commit over 5 years ago
Repo Created over 8 years ago
Repo Last Updated about 3 years ago
Size 210 KB
Organization / Authorrdegges
Page Updated
Do you use django-heroku-postgresify? Leave a review!
View django-heroku-postgresify activity
View on github
Book a Mock Interview With Me (Silicon Valley Engineering Leader, 100s of interviews conducted)
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating django-heroku-postgresify for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)


Automatic Django database configuration on Heroku.

What if configuring PostgreSQL is really easy?


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


Modify your Django settings.py file, and set:

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 config):


Your DATABASES setting would be:

    'default': {
        # DATABASE_URL configs here
    'SHARED': {
        # SHARED_DATABASE_URL configs here
    'BLUE': {
        # HEROKU_POSTGRESQL_BLUE_URL configs here
    'RED': {
        # HEROKU_POSTGRESQL_RED_URL configs here
    'SHARED_RED': {


If you're confused, you should probably read:


Build Status

Want to run the tests? No problem:

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

django-heroku-postgresify list of languages used
Other projects in Python
Powered by Autocode - Instant Webhooks, Scripts and APIs
Autocode logo wordmark