up vote 0 down vote favorite
share [fb]

Receiving this running Django on Win7. Friend set up django & database and says all the information in the settings.py is correct but I keep receiving this error when I try to test locally. The other weird thing is when I remove the .sql file from the project directory completely I still receive the same error.

File "c:\python26\lib\site-packages\django\db\backends\postgresql_psycopg2\base.py", line 98, in _cursor
    self.connection = Database.connect(**conn_params)

OperationalError: FATAL:  password authentication failed for user "post_user"

Settings.py:

DATABASE_ENGINE = 'postgresql_psycopg2'    
DATABASE_NAME = 'pinax'       
DATABASE_USER = 'post_user'             
DATABASE_PASSWORD = 'pass'        
DATABASE_HOST = 'localhost'             
DATABASE_PORT = ''     

Thoughts?

link|improve this question

79% accept rate
1  
So, if you try to connect with those parameters with psql what happens? – Scott Marlowe Dec 17 '10 at 3:06
When accessing a Django URL, I receive the "OperationalError" message, as posted above. – pythondjango Dec 17 '10 at 5:52
What has an sql file got to do with it? That's just a random file containing sql commands, not the actual database. As Scott asks, what happens when you try to connect directly to psql - forget about Django for the moment. – Daniel Roseman Dec 17 '10 at 8:43
feedback

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.