#19090: Change to PostgreSQL notes for Django 1.4 -------------------------------+------------------------------ Reporter: Rohaq | Owner: nobody Type: Uncategorized | Status: new Component: Documentation | Version: 1.4 Severity: Normal | Keywords: postgresql setup Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------+------------------------------ 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 -- Ticket URL: <https://code.djangoproject.com/ticket/19090> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.