将学习变成乐趣,一直在路上
每天1990

导航

 
问题:使用ip访问不了django站点,只能用127.0.0.1访问
 
 
解决方法:启动服务时ip使用0.0.0.0
 
使用gunicorn启动
gunicorn -w4 -b0.0.0.0:8020 UITestManage.wsgi
 
使用runserver启动
 python3 manage.py runserver 0.0.0.0:8020
 
posted on 2017-02-23 16:30  每天1990  阅读(5004)  评论(0编辑  收藏  举报