Commit 5767e0df authored by Kenneth Reitz's avatar Kenneth Reitz

more careful database setting

parent eeb63f21
......@@ -32,6 +32,13 @@ cat >>$SETTINGS_FILE <<EOF
import dj_database_url
DATABASES = {'default': dj_database_url.config(default='postgres://')}
if 'DATABASES' not in locals():
DATABASES = {}
if not 'default' in DATABASES:
DATABASES['default'] = {}
DATABASES['default'].update(dj_database_url.config(default='postgres://'))
EOF
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