无法访问Django网站 [英] Django site cant be reached

查看:45
本文介绍了无法访问Django网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c9(Django工作区)中运行服务器.没有错误,它说

I run the server in c9 (django workspace). There were no errors and it said

http://127.0.0.1:8000//启动开发服务器.

但是,当我打开此网站时,它会显示

However, when i open this site it says

无法访问此网站127.0.0.1拒绝连接.

This site can’t be reached 127.0.0.1 refused to connect.

任何人都可以帮助我解决此问题

Can anyone help me fix this issue

推荐答案

在文档中说,您使用他们提供给您的URL(而不是localhost)来访问服务器

In the documentation says that you use a URL they give to you (not localhost) to access the server

使用顶部的共享"按钮找出正在运行的应用程序"和预览"的URL.

Use the Share button on the top to figure out the URLs of running Application and the Preview.

请参见 https://docs.c9.io/docs/run-an-application#section--预览您的应用程序

这篇关于无法访问Django网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆