Don't require LOCAL_DATABASE_PASSWORD on local server.

(imported from commit d2bdd25ba9d472cb7cff3fa344cf0d7bb2799c6a)
This commit is contained in:
Tim Abbott
2013-11-10 12:14:11 -05:00
parent 64c3a9a0bd
commit 4b86d2a03b

View File

@@ -68,7 +68,14 @@ DATABASES = {"default": {
},
}
if not DEPLOYED or LOCAL_SERVER:
if LOCAL_SERVER:
DATABASES["default"].update({
'HOST': 'localhost',
'OPTIONS': {
'autocommit': True,
}
})
elif not DEPLOYED:
DATABASES["default"].update({
'PASSWORD': LOCAL_DATABASE_PASSWORD,
'HOST': 'localhost',