diff --git a/django/db/backends/postgresql_psycopg2/client.py b/django/db/backends/postgresql_psycopg2/client.py
index a5c0296..391371c 100644
a
|
b
|
class DatabaseClient(BaseDatabaseClient):
|
15 | 15 | args.extend(["-h", settings_dict['HOST']]) |
16 | 16 | if settings_dict['PORT']: |
17 | 17 | args.extend(["-p", str(settings_dict['PORT'])]) |
| 18 | if settings_dict['PASSWORD']: |
| 19 | os.environ['PGPASSWORD'] = settings_dict['PASSWORD'] |
18 | 20 | args += [settings_dict['NAME']] |
19 | 21 | if os.name == 'nt': |
20 | 22 | sys.exit(os.system(" ".join(args))) |