问题
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