Forums

Flask Application with Turbo-flask

Greetings!!

First of all, i would like to congratulate you guys for the nice python hosting, seems to work pretty well!

I am facing a problem that maybe you can help me with. I have a flask application built in my localhost which works fine. I commited it to Github and created a new application here in pythonanywhere, with flask and everything. So far, it seems to be mostly working! However, here is the catch. In this application of mine, i am using turbo-flask to run some dynamic updates in the html based on python attributes. It is all good in localhost but, in pythonanywhere, i get and error (WebSocket connection to 'wss://user.pythonanywhere.com/turbo-stream' failed). It might be something related with the websocket connection, but i am unsure about how to solve it, since i do not have access to nginx configuration. Is there a way to make it work?

Thanks in advance!

Unfortunately we don't support websockets in PythonAnywhere right now :-(. It's at the top of our priority list, but work is still ongoing.

It is a shame... Seems like i will need to find another alternative for the meantime =/

Thanks for your answer!

No problem, sorry I couldn't give a more positive reply!

So, turbo-flask does not work in pythonanywere? My app uses this library and locally it is updating current time, but when uploaded to PA, information does not change. I get no error.

We are doing closed beta of new features that among others support websockets. It's programmatic access with api only at that point. Contact us at support@pythonanywhere.com if you are interested.