mirror of https://github.com/django/django.git
Fixed error introduced in r14512.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14514 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
4fb1825e75
commit
cae746e037
|
@ -349,7 +349,7 @@ class DatabaseWrapper(BaseDatabaseWrapper):
|
|||
|
||||
def _connect_string(self):
|
||||
settings_dict = self.settings_dict
|
||||
if settings_dict['HOST'].strip():
|
||||
if not settings_dict['HOST'].strip():
|
||||
settings_dict['HOST'] = 'localhost'
|
||||
if settings_dict['PORT'].strip():
|
||||
dsn = Database.makedsn(settings_dict['HOST'],
|
||||
|
|
Loading…
Reference in New Issue