Skip to content
Snippets Groups Projects
Commit 2cf19251 authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

all set

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