Fixed bug in postgresql backend that prevented the user of passwords with spaces in them.
Use pass *phrases*, folks, they're grrrrreat! git-svn-id: http://code.djangoproject.com/svn/django/trunk@1236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
065dd334de
commit
d0ec43298a
|
@ -24,7 +24,7 @@ class DatabaseWrapper:
|
||||||
if DATABASE_USER:
|
if DATABASE_USER:
|
||||||
conn_string = "user=%s %s" % (DATABASE_USER, conn_string)
|
conn_string = "user=%s %s" % (DATABASE_USER, conn_string)
|
||||||
if DATABASE_PASSWORD:
|
if DATABASE_PASSWORD:
|
||||||
conn_string += " password=%s" % DATABASE_PASSWORD
|
conn_string += " password='%s'" % DATABASE_PASSWORD
|
||||||
if DATABASE_HOST:
|
if DATABASE_HOST:
|
||||||
conn_string += " host=%s" % DATABASE_HOST
|
conn_string += " host=%s" % DATABASE_HOST
|
||||||
if DATABASE_PORT:
|
if DATABASE_PORT:
|
||||||
|
|
Loading…
Reference in New Issue