python--django项目如何设置用自己的iP地址访问项目 一、首先需要执行>manage.py runserver 0.0.0.0:8000。 二、在setting.py里面需要添加ALLOWED_HOSTS="*"。