Article From:https://www.cnblogs.com/perfey/p/9967362.html
In fact, this is the same as our publisher.The # Django project allows access to other machines in the LAN1. In settings, change the host IP allowed to access to *ALLOWED_HOSTS=["*"]2, run djanRun the Go program with commandsPython management.py runserver 0.0.0:8000 # 0.0.0.0 represents that all hosts in the network can access 8000 as the access port.3, other machine visitsInput at question timeHttp://192.168.19.42:8000/test/OK #192.168.19.42 is the intranet IP test that opens the Django service machine is url.

 

Recommended blogs: https://blog.csdn.net/pindian0998/article/details/77946831

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *