mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
all set
This commit is contained in:
+2
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user