django接口可以通過localhost或者127.0.0.1進行訪問,但無法通過本機ip地址訪問
1.修改django項目中的settings.py文件
ALLOWED_HOSTS = "*"
2.cmd窗口運行命令啟
python manage.py runserver 0.0.0.0:8080
3.pycharm中啟動
修改Run/Debug Configurations中的Host為0.0.0.0
Anyone who has used SAP knows
# 1. Enter lowercase words and