[英]Can someone tell me what's wrong, when I run it the browsers says "This site can’t be reached"
I am learning Python on Treehouse and right now I am on the Flask Turorial.我正在 Treehouse 上学习 Python,现在我在 Flask Turorial 上。 There is a part of how to build a social app.这是如何构建社交应用程序的一部分。 I watched the videos a few times and I typed the exact code in IDLE but when I run the app it runs correctly, then when I type http://127.0.0.1:8090 in the browser it says "The site can't be reached".我看了几次视频,在 IDLE 中输入了确切的代码,但是当我运行应用程序时,它运行正常,然后当我在浏览器中输入http://127.0.0.1:8090时,它说“该站点不能到达”。 Does anyone know where is the problem?有谁知道问题出在哪里?
I uploaded my code to GitHub so you can review it.我将我的代码上传到 GitHub,以便您可以查看它。 Here's the link:https://github.com/nenadristov/social_app_treehouse/tree/master这是链接:https ://github.com/nenadristov/social_app_treehouse/tree/master
Problem is with your Port number.问题在于您的端口号。 In app.py the Port mentioned is 8000 but you are trying to access 8090. Try http://127.0.0.1:8000/在 app.py 中提到的端口是 8000,但您正在尝试访问 8090。尝试http://127.0.0.1:8000/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.