I am trying to develop an auction type system, where a customer makes an order, and then different stores can offer a price for that order.
An interesting part of this
If you want to talk to the consumer from "outside" - in this case, from a model save method - you'll need to use a Channel Layer to talk to it: http://channels.readthedocs.io/en/latest/topics/channel_layers.html
Essentially, you'll need to:
OrderOffer with a custom type - e.g. {"type": "order.new_offer", "order_offer_id": 45}def order_new_offer(self, event):self.send to talk down the socket (and query the database if you need extra info to send to the client you didn't put into the event message).You can see a variant of this in the MultiChat example project: https://github.com/andrewgodwin/channels-examples/tree/master/multichat