Forums

Django Live Chat

Hello, is there any way to implement in a django app, a live chat without using Django Channels?(because I read that PythonAnywhere doesn't support asgi yet). Any ideas how??Thanks

You could do something using polling -- write some JavaScript that hit a view on your site to check for new messages every second or two.

Isn't that highly inefficient? To execute a script in an infinite loop while on the specific view?

Is that what the Tasks section in the dashboard is for?

That's what many apps running in the browser are doing anyway. You can use Always-on task to handle backed-side updates to the database. https://help.pythonanywhere.com/pages/AlwaysOnTasks/

...

Am unable to upload my files on my web server in my python account writing '413 Request Entity Too Large' what can i do am using a paid account

We have a help page for that.

Do you support ASGI ?

Not yet, but soon.