Django如何用真实的IP访问

一、首先需要执行>manage.py runserver 0.0.0.0:8000

二、在setting.py里面需要添加ALLOWED_HOSTS="*"

猜你喜欢

转载自www.cnblogs.com/yhll/p/8963702.html
今日推荐