django-realtime
django-realtime copied to clipboard
I can't send message to channel
I need on save to send message:
def post_save(self, obj, created=False):
// send message to channel 'test'
Can't do with socket.emit
doesn't know from where to import socket :/
can you give me example how can i do that?
To be honest I don't actually know whether this code works with modern Django, gevent or gevent-socketio, I haven't looked at it for a long time and it is totally unsupported right now (I should probably put it in the readme).
Unfortunately I don't have capacity to help you at the moment.