Connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL: Ident authentication failed for user "postgres"

I'm trying to set up Django PostgreSQL in Django application. I created the db, user and password for the user and when I run \l I can see the db. When I run the django app with python manage.py runserver i get the following error messages.

ON PURE START UP
USER TABLE NOT EXIST
connection to server at "localhost" (127.0.0.1), port 5432 failed: could not initiate GSSAPI security context: Unspecified GSS failure.  Minor code may provide more information: Server not found in Kerberos database
connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL:  Ident authentication failed for user "postgres"

What am I missing

Back to Top