我已经使用django很长一段时间了,直到现在我使用它没有任何问题.
当我在终端中运行py manage.py runserver 127.0.0.1:8000它显示
执行系统检查......
系统检查未发现任何问题(0静音).2015年7月23日 - 16:17:23 Django 1.8.3版,使用设置'projectname.settings'启动开发服务器http://127.0.0.1:8000/使用CTRL-BREAK退出服务器.执行系统检查......
然后当我在浏览器中打开它时,它没有向我显示任何内容.它只是加载和加载和加载..
我试过谷歌搜索它,但有些人建议我改变我的端口,所以我改变它,有人说我的ipaddress使用了8000以外的端口,我做了但没有任何帮助我.它一直停留在加载页面上.
我正在使用django 1.8.3.在Windows btw上运行它
尝试使用命令启动服务器时遇到问题
python manage.py runserver 0.0.0.0:8000
Run Code Online (Sandbox Code Playgroud)
它显示
C:\abc>python manage.py runserver 0.0.0.0:8000
Validating models...
0 errors found
Django version 1.4.9, using settings 'abc.settings'
Development server is running at http://0.0.0.0:8000/
Quit the server with CTRL-BREAK.
Run Code Online (Sandbox Code Playgroud)
但无法通过浏览器访问 http://127.0.0.1:8000
它显示:
Unable to connect
Firefox can't establish a connection to the server at 127.0.0.1:8000.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or …Run Code Online (Sandbox Code Playgroud)