How to Connect My Django App with incoming data on

2019-09-02 17:25发布

问题:

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.