我无法在部署中连接到 postgresql 数据库

问题描述 投票:0回答:0

你好我只想在任何地方用python部署我的django项目....当我运行命令

py manage.py migrate

它显示此错误消息

django.db.utils.OperationalError: connection to server at "<Host name>" (<IP address>), port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?
我认为 python 中的问题无处不在,因为当我使用
pgadmin
文件中的相同信息连接到
settings.py
中的服务器时,我没有收到任何错误消息,您必须知道我正在使用
neon.tech
我的 postgresql 数据库

django postgresql backend pythonanywhere
© www.soinside.com 2019 - 2024. All rights reserved.