﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19090	Change to PostgreSQL notes for Django 1.4	Rohaq	Lebedev Ilya	"Hi,

You might want to add a note for the following page under PostgreSQL:
https://docs.djangoproject.com/en/1.4/ref/databases/

I'm running PostgreSQL 9.1 locally, and found that Django was unable to connect to the database when the 'HOST' value was left as an empty string, resulting in the following error when running `python manage.py syncdb`:


{{{
psycopg2.OperationalError: FATAL:  Peer authentication failed for user

}}}

After some searching, I found the following solution on StackOverflow: http://stackoverflow.com/a/8232004/733402

Setting it to `localhost` rather than an empty string (as suggested by the inline comments in the config file) fixed the issue. You might want to consider adding this to the documentation so that other users can more easily work around the same issue.

Cheers!

-R"	Bug	closed	Documentation	1.4	Normal	fixed	postgresql setup		Accepted	1	0	0	0	1	0
