|
First, I'm a linux noob. So if I've missed something basic, please let me know.
I'd like to check my steps for creating a user for postgres and then allowing that user to authenticate form django to postgres and do teh database work.
SU to postgres. $ su - postgres
As postgres, create a database. $ createdb dbname
As postgres, login to dbname. $ psql -d dbname -U postgres
Create the DB user: $ CREATE USER awesome PASSWORD 'something';
Using CREATE USER assigns login to that user.
That all works. But the only way to actually authenticate to the database is to su to that user.
Now, I add that user, database and password to my Django settings.py file. But when I try to syncdb, I get:
Ident authentication failed for user "awesome"
In my stack trace.
I'm confused what I'm missing. Any suggestions would be welcome. DO I have to set up authentication on my server with postgres?
Dave
|