How to Connect My Django App with incoming data on

2019-09-02 16: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条回答
混吃等死
2楼-- · 2019-09-02 17:13

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.

查看更多
登录 后发表回答