Найти - Пользователи
Полная версия: django.db.utils.OperationalError: FATAL
Начало » Базы данных » django.db.utils.OperationalError: FATAL
1
wadadaaa
Получаю такую ошибку:

django.db.utils.OperationalError: FATAL:  password authentication failed for user "user"
password retrieved from file "/Users/user/.pgpass"

pg_hba.conf
# Database administrative login by UNIX sockets
local   all         postgres                          trust
# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
# "local" is for Unix domain socket connections only
local   all         all                               trust
# IPv4 local connections:
host    all         all         127.0.0.1/32          trust
# IPv6 local connections:
host    all         all         ::1/128               trust
# This is for general access databases:
local   all         all                               trust
host    all         all         127.0.0.1/32          trust

settings.py

DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.postgresql_psycopg2",
        "NAME": "recipesdb",
        "USER": "",
        "PASSWORD": "",
        "HOST": "localhost",
        "PORT": "5432",
    }
}

что я делаю не так?
Singularity
wadadaaa
попробуй создать в базе самому и
указать пароль явно
wadadaaa
Пробую через pgAdmin3 и таже ошибка - базу создать не дает
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB