How to Connect My Django App with incoming data on a TCP Port

左心房为你撑大大i 提交于 2019-12-12 02:46:55

问题


I am trying to connect a django URL to incoming data on TCP/IP Port. It would be great if someone, could shed some light on this


回答1:


You'll probably have to listen on the port from another process, or thread. Save the incoming data somewhere, whether it be a log file, database, or whatever. Then have Django use this data when it prepares the web page to send in response to requests on the URL.



来源:https://stackoverflow.com/questions/16212161/how-to-connect-my-django-app-with-incoming-data-on-a-tcp-port

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!