18934

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

Question:

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

Answer1:

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.

Recommend

  • jQuery not triggering on appended item
  • NSString writeToFile with URL encoded string
  • http response text fetching incomplete html
  • Visual VM showing strange behavior
  • Jquery - fadeIn() and fadeOut() in PNG image. Border Solid (black) in IE8…?
  • Facebook Like Button doesn't increment
  • C++ DLL Wrapper in vb.net Passing byte array of a byte array?
  • Django how to modify database records by template
  • Simple command-line app I/O in Dart
  • Can't configure nginx as a proxy for tomcat with context path
  • What is wrong in my MVC implementation?
  • Google OAuth2 for an web application hosted behind NAT (intranet server without public IP)
  • Symfony2 redirect to https route fails (uses wrong port)
  • Rails 3.2 from SQLite locally to Postgres on Heroku
  • How to resolve docker host names (/etc/hosts) in containers
  • XBee Linux Serial Port on Rasberry Pi
  • Should I be afraid to use UDP to make a client/server broadcast talk?
  • Why is django manage.py syncdb failing to create new columns on my development server?
  • Unix Network Programming Clarification
  • node.js POST request fails
  • SQL - Select lowest values with group by and order by?
  • CORS with socket.io
  • Cypher - matching two different possible paths and return both
  • Django return user model id with L
  • Creating PDF from TIFF image using iText
  • Prevent Tomcat from caching request during starup
  • Dynamically switching connect in Modelica
  • nonblocking BIO_do_connect blocked when there is no internet connected
  • Redux Form - Not able to type anything in input
  • Access Android Market through SSH tunnel
  • Django simple Captcha “No module named fields” error
  • Get history of file changes from TFS to implement custom “blame”-behaviour of exceptions
  • How to run “Deployd” on port 80 instead of port 5000 in webserver.
  • Cannot resolve symbol 'MyApi'
  • formatting the colorbar ticklabels with SymLogNorm normalization in matplotlib
  • Incrementing object id automatically JS constructor (static method and variable)
  • Circular dependency while pushing http interceptor
  • AngularJs get employee from factory
  • How to set the response of a form post action to a iframe source?
  • Change div Background jquery