python django 网站局域网问

1.service iptables stop  
2.
setting.py -->  ALLOWED_HOSTS = ['*',]

3.
python manage.py runserver 0.0.0.0:8000

 




 
posted on 2020-05-19 09:11  InnoLeo  阅读(230)  评论(0编辑  收藏  举报