manage.py runserver

前端 未结 8 1352
情话喂你
情话喂你 2020-11-28 22:36

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 http://A:8000/ I am getting an error like The system retu

相关标签:
8条回答
  • 2020-11-28 23:05

    You need to tell manage.py the local ip address and the port to bind to. Something like python manage.py runserver 192.168.23.12:8000. Then use that same ip and port from the other machine. You can read more about it here in the documentation.

    0 讨论(0)
  • 2020-11-28 23:06

    in flask using flask.ext.script, you can do it like this:

    python manage.py runserver -h 127.0.0.1 -p 8000

    0 讨论(0)
提交回复
热议问题