Database configuration

Provides herokuify.db.get_db_config() function that reads PostgreSQL database settings from Heroku environment.

Note

This functionality relies on django-heroku-postgresify.

herokuify.db.get_db_config()

Return a fully configured Django DATABASES setting. We do this by analyzing all environment variables on Heorku, scanning for postgres DBs, and then making shit happen, duh.

Returns a fully configured databases dict.

Django config

Use this to configure database settings in your Django project:

import herokuify
DATABASES = herokuify.get_db_config()

Table Of Contents

Previous topic

Common settings

Next topic

Cache

Python Development

Django web development for startups and businesses.

Quality Python development and scientific applications.

Quick links

Edit this document

The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.