[英]Django test-page returns 404 even though django is up and running
I'm trying to set up my first django-dev in osx lion. 我正在尝试在osx Lion中设置我的第一个django-dev。 It seems to be up and running: 它似乎已启动并正在运行:
Kristoffers-MacBook-Pro:django-test kristoffernolgren$ python manage.py runserver
Validating models...
0 errors found
Django version 1.4.1, using settings 'mysite.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
^CKristoffers-MacBook-Pro:django-test kristoffernolgren$
but when I visit the URL http://127.0.0.1:8000/
I get a "connection failed" error. 但是当我访问URL http://127.0.0.1:8000/
出现“连接失败”错误。
I didn't understand that when cou press Ctrl+C you turn of the development server. 我不明白,当按Ctrl + C组合键时,您会关闭开发服务器。 Just don't press ctrl+c. 只是不要按ctrl + c。 Hopefully This will help someone else :) 希望这会帮助别人:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.