【发布时间】:2018-03-15 21:37:40
【问题描述】:
我可以使用一些帮助来找出为我的一个 django 项目运行开发服务器的问题。当我运行python managy.py runserver 时,我得到一个以这个结尾的错误:
OperationalError: could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
在使用 Django 时,我从来没有遇到过这样的事情,所以我会非常感谢所有可能的解决方案。
【问题讨论】:
标签: django localhost manage.py