Соединение с сервером на "localhost" (127.0.0.1), порт 5432 не удалось: FATAL: Ident authentication failed for user "postgres"

Я пытаюсь настроить Django PostgreSQL в приложении Django. Я создал базу данных, пользователя и пароль для пользователя, и когда я запускаю \l, я вижу базу данных. Когда я запускаю приложение django с помощью python manage.py runserver, я получаю следующие сообщения об ошибках.

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"

Что я упускаю

Вернуться на верх