Django收到“通知”;致命:用户“的密码身份验证失败”;即使用户信任是正确的

Django收到“通知”;致命:用户“的密码身份验证失败”;即使用户信任是正确的,django,postgresql,python-3.6,Django,Postgresql,Python 3.6,一些背景: 我正在尝试在Windows上安装。在出现一些问题之后,我看到建议在Linux上运行它,所以现在我在Ubuntu终端上运行Windows。 至于错误: 第一步是运行python manage.py setup\u db命令。它失败于: FATAL: password authentication failed for user "kali" Error connecting to db with these settings: dbname=jerarch us

一些背景: 我正在尝试在Windows上安装。在出现一些问题之后,我看到建议在Linux上运行它,所以现在我在Ubuntu终端上运行Windows。

至于错误: 第一步是运行
python manage.py setup\u db
命令。它失败于:

FATAL:  password authentication failed for user "kali"

Error connecting to db with these settings: dbname=jerarch user=kali host=localhost port=5432

Have you created the database yet? The quickest way to do so is to supply Postgres superuser credentials in the PG_SUPERUSER and PG_SUPERUSER_PW settings, and then re-run this same command.
此外:

  • 用户“kali”存在,我已经使用
    ALTER User kali和密码“xxxxxxxx”设置了它的密码
  • psql-U kali-d jerach
    工作正常,并且只使用我之前设置的密码(意味着
    ALTER USER
    工作正常)
  • PG_超级用户
    PG_超级用户
    根据需要定义

我真的不知道还能做什么。谢谢

所以在发布问题之前,我发现问题出在重复的
postgresql
enivronments上:一个在我的Windows上运行,另一个在虚拟Ubuntu上运行。
使用Ubuntu cli for
psql
处理Ubuntu postgres,而出于某种原因,Ubuntu上的
djnago
处理窗口的postgres。
kali
用户也在那里进行了配置,但使用了另一个密码