python django 网站局域网问

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

3.
python manage.py runserver 0.0.0.0:8000





 
原文地址:https://www.cnblogs.com/tingxin/p/12914913.html