【发布时间】:2016-12-06 08:47:39
【问题描述】:
我最近在 Windows Server 2012 R2 上安装了 django。
当我运行 python manage.py runserver 时,它告诉我使用 http://127.0.0.1:8000/ 。它在 Internet Explorer 上工作,但在 Firefox 和 Chrome 中我收到以下错误。
The requested URL could not be retrieved
The following error was encountered while trying to retrieve the URL: http://127.0.0.1:8000/
Connection to 127.0.0.1 failed.
The system returned: (111) Connection refused
The remote host or network may be down. Please try the request again.
Your cache administrator is administrator.
【问题讨论】:
-
这是家用还是办公机器?
-
看来您需要绕过本地主机的代理服务器。它可能已经在 IE 中启用,这就是它在那里工作的原因。
-
未启用绕过代理。启用后它起作用了。 @AKS 非常感谢 :)
标签: django python-3.x windows-server-2012-r2