What I'm curious about is the concept. Python and JavaScript also use websocket (socket.io??) If an event occurs because the client and server are connected to each other, I understand that you can send a message in real time.
So you don't use JavaScript Can you build a server with a long drive and build it so that data can change in real time? Or should I use JavaScript Node.js?
I want to run it only with Django, but I can't find a way. Django is also Python language after all, so I wonder if I have to use JavaScript language to display it on the web page.
python django node.js webpage
I don't know if I got it right
There is no language constraint on server operation, but the response to the client must be written in a language that can be read by the client.
In the case you mentioned, it's a browser that reads the server's message, so I should give you an answer that the browser can read, right?
In other words, if the response means a web page, it should be written in HTML and JavaScript, and if it is a message, it should be XML, JSON, or simple text.
The person below will answer the answer...
© 2024 OneMinuteCode. All rights reserved.