[英]Running django on 0.0.0.0:8000
我使用的无业游民在VirtualBox中一起,所以我不能runserver
默认端口和地址,否则将无法正常工作。
Django说:
(...) to listen on all public IPs (useful if you want to show off your work on
other computers), use:
python manage.py runserver 0.0.0.0:8000
然后,我尝试通过http://127.0.0.1:8888/
访问服务器,但显示Unable to connect
。 任何猜测如何正确运行服务器?
我遵循了gettingstartedwithdjango
vidoes的gettingstartedwithdjango
Started gettingstartedwithdjango
入门,这个http://127.0.0.1:8888/
为作者工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.