WebFaction
Community site: login faq

When I do

python manage.py syncdb

I get this error -

File "/usr/local/lib/python2.7/site-packages/psycopg2/__init__.py", line 179, in connect
    connection_factory=connection_factory, async=async)
psycopg2.OperationalError: FATAL:  no pg_hba.conf entry for host "[local]", user "prajwalps97", database "prajwalps97_lmagazinedb", SSL off

Anyone have any ideas as to what could be going on here? Thanks in advance!

asked 31 Oct '12, 11:01

Prajwal
10622130
accept rate: 33%

Can you post the database config from your settings.py blocking out your password etc.? Or if you prefer open a support ticket for us to take a closer look at your config.

(31 Oct '12, 11:24) bmeyer71 ♦♦

Based on the error, you haven't specified the correct database username in settings.py. The database username should be the same as the database name, ie "prajwalps97_lmagazinedb".

permanent link

answered 31 Oct '12, 15:26

seanf
12.2k42136
accept rate: 37%

I realized this soon, thanks. :)

(01 Nov '12, 01:50) Prajwal
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×113
×109

question asked: 31 Oct '12, 11:01

question was seen: 5,804 times

last updated: 01 Nov '12, 01:50

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM