manage.py runserver

编程入门 行业动态 更新时间:2024-10-25 20:22:01
本文介绍了manage.py runserver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在运行 python manage.py runserver 从机器A 当我试图检入机器B 我键入的URL是 http:// A:8000 / 我收到一个错误,如系统返回:(111)连接拒绝

I am running python manage.py runserver from a machine A when I am trying to check in machine B The url I typed is A:8000/ I am getting an error like The system returned: (111) Connection refused

推荐答案

您可以通过

./ manage.py runserver 0.0.0.0:8000

./manage.py runserver 0.0.0.0:8000

而且您可以从任何机器到达您的服务器你的网络只需在浏览器中的其他机器上输入 192.168.0.1:8000 其中 192.168.0.1 是你的服务器的IP ...并且它准备好了....

And than you will be able to reach you server from any machine in your network. Just type on other machine in browser 192.168.0.1:8000 where 192.168.0.1 is IP of you server... and it ready to go....

或在你的情况下:

  • 在机器上 A 在命令行 ./ manage.py runserver 0.0.0.0:8000
  • 比浏览器类型 http:// A:8000
  • 喝一口啤酒。
  • On machine A in command line ./manage.py runserver 0.0.0.0:8000
  • Than try in machine B in browser type A:8000
  • Make a sip of beer.
  • 源自django docs

    更多推荐

    manage.py runserver

    本文发布于:2023-10-22 22:22:22,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1518901.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:manage   py   runserver

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!