轉載自:https://www.cnblogs.com/my-blogs-for-everone/p/6196300.htmlhtml
1、首先須要執行>manage.py runserver 0.0.0.0:8000。server
2、在setting.py裏面須要添加ALLOWED_HOSTS="*"。htm