浙江省高等学校教师教育理论培训

微信搜索“毛凌志岗前心得”小程序

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

python manage.py runserver 0.0.0.0:8000 - zkz的专栏 - 博客频道 - CSDN.NET

python manage.py runserver 0.0.0.0:8000

423人阅读 评论(1) 收藏 举报

 

Changing the port

By default, the runserver command starts the development server on the internal IP at port 8000.

If you want to change the server's port, pass it as a command-line argument. For instance, this command starts the server on port 8080:

python manage.py runserver 8080

If you want to change the server's IP, pass it along with the port. So 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

Full docs for the development server can be found in the runserver reference.

posted on 2012-12-10 11:30  lexus  阅读(324)  评论(0编辑  收藏  举报