【问题标题】:http://127.0.0.1:8000/ isn't working on Chrome but working fine on Internet Explorerhttp://127.0.0.1:8000/ 不能在 Chrome 上运行,但在 Internet Explorer 上运行良好
【发布时间】: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


【解决方案1】:

未启用绕过代理。启用后就可以了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-10-13
    • 2014-11-19
    • 2018-09-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多