[英]psycopg2.OperationalError: fe_sendauth: no password supplied
I recently started following the Geodjango tutorials on the Django documentation. 我最近开始关注Django文档上的Geodjango教程。 I have installed all I need: PostgreSQL, PostGIS, psycopg2, GDAL. 我已经安装了所有我需要的东西:PostgreSQL,PostGIS,psycopg2,GDAL。 My python version is 3.7.0 and django version is 2.1 我的python版本是3.7.0,django版本是2.1
Anytime I run py manage.py makemigrations I get this error 每当我运行py manage.py makemigrations时,我都会收到此错误
Please help, thanks! 请帮忙,谢谢!
Make sure in your settings.py
you are setting the database PASSWORD
, not PASS
as is expected by default. 在确保settings.py
您正在设置数据库PASSWORD
,没有PASS
为默认情况下的预期。 That's what threw me! 那就是让我投掷的东西!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.