标签: django windows
我在本地IP(192.168.86.122:8000)上运行django服务器,但Windows防火墙似乎阻止了连接。
任何建议都会很有帮助。
答案 0 :(得分:1)
您面向网络的端口可能已被阻止。
或者使用 localhost: py manage.py runserver 127.0.0.1:8000
py manage.py runserver 127.0.0.1:8000
或者在您的 Windows 防火墙上允许端口 8000: netsh firewall add portopening TCP 8000 "Django Dev Server"
netsh firewall add portopening TCP 8000 "Django Dev Server"