jrief / django-websocket-redis

Websockets for Django applications using Redis as message queue
http://django-websocket-redis.awesto.com/
MIT License
896 stars 222 forks source link

Hooking into django model changes. #163

Closed lorddaren closed 8 years ago

lorddaren commented 8 years ago

I have been looking into implementing this library and wanted to know if there was a simple way of publishing changes that occur to models. For instance, if I am pulling data from a Jobs table, and someone adds a new job I would like that job to show up for every client connected. Would I need to override the save method for each model I create?

jrief commented 8 years ago

That's a bit off-topic. It all depends on your needs and implementation. I personally would do these things in the controller (aka View class).