简体   繁体   English

有人能告诉我出了什么问题,当我运行它时,浏览器说“无法访问此站点”

[英]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.

相关问题 有人可以告诉我我的 animation 代码有什么问题吗? - Can someone tell me what's wrong with my animation code? 有人可以告诉我我做错了什么[暂停] - Can someone tell me what I'm doing wrong [on hold] 有人可以告诉我我做错了什么吗? - Can someone tell me what am I doing wrong? 这是我第一次尝试 tkinter,我无法克服这个错误。 有人可以告诉我它有什么问题并建议修复吗? - It's my first time trying tkinter and I can't get over this error. Can someone tell me what's wrong with it and suggest a fix? 我不明白为什么这段代码不起作用! 有人可以告诉我我做错了吗? - I don't see why this code is not working! can someone please tell me what i am doing wrong? 有人能告诉我这个 python 代码有什么问题吗? - Can someone tell me what is wrong with this python code? 有人能告诉我我的代码有什么问题吗 - Can someone tell me what is wrong with my code 有人可以告诉我这种结构在哪里出错吗? - Can someone tell me where I'm going wrong with this structure? 如何将图像数据正确拟合到 python 中的 model? 有人可以告诉我我做错了什么吗? - How to fit image data correctly to a model in python? Can someone tell me what i did wrong? 有人可以告诉我我的代码有什么问题吗? 我在调试时遇到问题 - Can someone tell me what is wrong with my code? I am having problems debugging
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM