Commit 2cf19251 authored by Kenneth Reitz's avatar Kenneth Reitz

all set

parent c309a882
...@@ -108,10 +108,9 @@ try: ...@@ -108,10 +108,9 @@ try:
url = urlparse.urlparse(os.environ['DATABASE_URL']) url = urlparse.urlparse(os.environ['DATABASE_URL'])
# Ensure default database exists. # Ensure default database exists.
DATABASES['default'] = DATABASES.get('default', {}) DATABASES['default'] = DATABASES.get('default', {})
# We use update here to preserve other keys we # Update with environment configuration.
# don't care about (like OPTIONS)
DATABASES['default'].update({ DATABASES['default'].update({
'NAME': url.path[1:], 'NAME': url.path[1:],
'USER': url.username, 'USER': url.username,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment