Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Use Database URLs in your Django Application.
Python
branch: master

This branch is 78 commits behind kennethreitz:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE
README.rst
dj_database_url.py
setup.py

README.rst

DJ-Database-URL

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

Usage

Configure your database in settings.py from DATABASE_URL:

DATABASES['default'] = dj_database_url.config()

Parse an arbitrary Database URL:

DATABASES['default'] = dj_database_url.parse('postgres://...')

Installation

Installation is simple too:

$ pip install dj-database-url
Something went wrong with that request. Please try again.