Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
django.db.utils.OperationalError:部署到Pythonywhere时_Python_Django_Pythonanywhere - Fatal编程技术网

django.db.utils.OperationalError:部署到Pythonywhere时

django.db.utils.OperationalError:部署到Pythonywhere时,python,django,pythonanywhere,Python,Django,Pythonanywhere,django.db.utils.OperationalError:无法连接到服务器:连接被拒绝 服务器是否在主机“localhost”(::1)上运行并接受 端口5432上的TCP/IP连接? 无法连接到服务器:连接被拒绝 服务器是否在主机“localhost”(127.0.0.1)上运行并接受 端口5432上的TCP/IP连接? 无法连接到服务器:连接被拒绝 服务器是否在主机“localhost”(127.0.0.1)上运行并接受 端口5432上的TCP/IP连接? 当您将数据库设置为某些外部

django.db.utils.OperationalError:无法连接到服务器:连接被拒绝 服务器是否在主机“localhost”(::1)上运行并接受 端口5432上的TCP/IP连接? 无法连接到服务器:连接被拒绝 服务器是否在主机“localhost”(127.0.0.1)上运行并接受 端口5432上的TCP/IP连接? 无法连接到服务器:连接被拒绝 服务器是否在主机“localhost”(127.0.0.1)上运行并接受 端口5432上的TCP/IP连接?

  • 当您将数据库设置为某些外部数据库(如PostgreSQL)时,会发生此错误,该数据库当前未运行。请确保您的数据库正在运行

您在django设置中的db配置是什么样子的?