简体   繁体   中英

Display Data In Real Time With Django

I have a simulator application that continuously spits out data, formatted in JSON, to a given host name and port number (UDP). I would like to be able to point the simulator output to a Django web application so that I can monitor/process the data as it comes in.

How do I receive and process data in real time using Django? What tools or packages are available to accomplish this? I did come across this answer: How to serve data from UDP stream over HTTP in Python? , but I don't completely understand.

Ex: Similar to this page: http://money.cnn.com/data/markets/

ALSO, I don't need to store any of the streaming data in a database. I just need to perform lookups based on the streaming data. Maybe it's not a Django issue at all?

Using Javascript. Create a webpage with all the results, and then use javascript to collect the data from the page, and update it every X seconds.

Have the webpage be the JSON data, and the javascript grab it an interpret it. get html code using javascript with a url

Then update the page using javascript. ww3 schools has great JS tutorials

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM