【问题标题】:Django app is showing an error: INFO:waitress:Serving on http://0.0.0.0:8000Django 应用程序显示错误:INFO:waitress:Serving on http://0.0.0.0:8000
【发布时间】:2021-12-30 12:55:37
【问题描述】:

当我在浏览器中使用 url http://0.0.0.0:8000 时,它显示“无法访问该站点”。如何解决这个问题呢?我的 Django 项目名称是:testtodo,我使用这个命令:

waitress-serve --port=8000 testtodo.wsgi:application

当我在浏览器http://0.0.0.0:8000 上单击此链接时,它显示错误,无法访问此站点,以及此错误:

The webpage at http://0.0.0.0:8000/ might be temporarily down or it may have moved permanently to a new web address.
ERR_ADDRESS_INVALID

【问题讨论】:

  • 地址0.0.0.0:8000是应用绑定到所有可用的网络设备上。但是在您的浏览器中,您应该转到127.0.0.1:8000(您的本地主机设备)。
  • 是的,我知道但实际上我正在部署我的项目,而且我使用了女服务员服务器,我不想在 locathost 上运行我的项目,我想上传到 heroku

标签: python django heroku-cli waitress


【解决方案1】:

我在部署我的项目时遇到了同样的错误,请参阅这个可以帮助你的链接 -> https://www.youtube.com/watch?v=_3AKAdHUY1M 。请记住,即使我忽略了这个错误,你也必须忽略它并按照他说的去做到最后,您的项目将被部署。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-05-19
    • 1970-01-01
    • 2021-01-17
    • 1970-01-01
    • 2015-09-02
    • 1970-01-01
    • 2017-12-02
    相关资源
    最近更新 更多