Answer the question
In order to leave comments, you need to log in
How to make an "AJAX-like" site on Tornado?
In general, I need to update the information on the page without reloading.
I'm not very friendly with JavaScript, so I would like to get by with just Python with its Tornadoweb .
What are the implementation options? Or is it just AJAX?
Answer the question
In order to leave comments, you need to log in
This article [Eng] (chat on websocket) helped me figure it out a bit .
All the same, this will require the page to make requests from the client side. Those. it won't work without js.
In fact, the usual updating of a part of the page is not difficult at all, google the examples and slightly remake them for yourself.
I will support javascript at the expense, I will have to do it, write 10-15 lines. I only recommend not a tornado, but its analogue on twisted - cyclone.io Better
yet, abudte about a tornado, and a twisted, and a cyclone. And use aiohttp, this is a further development of all of the above, without many of these diseases, with templates for mako and ninja. This is a flask with the correct batteries.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question