`
zl4393753
  • 浏览: 332666 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
社区版块
存档分类
最新评论

How to make Django's devserver public

 
阅读更多


python manage.py runserver 0.0.0.0:8181


This will run development server that should listen on all IP's on port 8181, but it will still be single threaded so only one connection will be possible at the time.

From docs:

Note that the default IP address, 127.0.0.1, is not accessible from other machines on your network. To make your development server viewable to other machines on the network, use its own IP address (e.g. 192.168.2.1) or 0.0.0.0.
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics