【发布时间】: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