gpt4 book ai didi

python manage.py runserver 不工作

转载 作者:行者123 更新时间:2023-12-01 05:50:14 25 4
gpt4 key购买 nike

我正在尝试通过跟随 Writing your first Django app 在我的 mac 上学习 django

我运行

django-admin.py startproject mysite

它会创建它应该创建的文件。然后我尝试通过运行来启动服务器

python manage.py runserver 8080

没关系,消息是:

Validating models...

0 errors found Django version 1.4.2, using settings 'mysite.settings' Development server is running at http:// 127.0.0.1:8080/ Quit the server with CONTROL-C.

但是当我访问 127.0.0.1:8080 时,我收到 504 错误页面:

This Page Cannot Be Displayed

The system cannot communicate with the external server ( 127.0.0.1 ). The Internet server may be busy, may be permanently down, or may be unreachable because of network problems. ......

我在这里缺少什么?

最佳答案

考虑到您正在使用代理(如评论中所述)。出现此错误的原因:

This Page Cannot Be Displayed

The system cannot communicate with the external server ( 127.0.0.1 ). The Internet server may be busy, may be permanently down, or may be unreachable because of network problems. ......

在代理中查找 127.0.0.1,并且在代理服务器上没有在端口 8080 上监听

关于python manage.py runserver 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14560561/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com