Ticket #10063: django_psql_pass_nonsolution.patch
File django_psql_pass_nonsolution.patch, 874 bytes (added by , 16 years ago) |
---|
-
/usr/share/python-support/python-django/django/db/backends/postgresql/client.py
old new 9 9 args = [self.executable_name] 10 10 if settings.DATABASE_USER: 11 11 args += ["-U", settings.DATABASE_USER] 12 if settings.DATABASE_PASSWORD:13 args += ["-W"]14 12 if settings.DATABASE_HOST: 15 13 args.extend(["-h", settings.DATABASE_HOST]) 16 14 if settings.DATABASE_PORT: 17 15 args.extend(["-p", str(settings.DATABASE_PORT)]) 18 16 args += [settings.DATABASE_NAME] 17 if settings.DATABASE_PASSWORD: 18 args[-1] = "dbname=%s password=%s" % (args[-1], settings.DATABASE_PASSWORD) 19 19 os.execvp(self.executable_name, args)