Re: Understanding django channels persistant data

2016-12-20 Thread Kakar Nyori
Hi, Yes that was it. Although I was getting this error: *ERROR - worker - Error processing message with consumer myproject.consumers.ws_message:* But this was corrected after the *enforce_ordering *was added into the consumer function. Thank you so much for your help and for introducing such a

Re: Understanding django channels persistant data

2016-12-20 Thread Andrew Godwin
On Tue, Dec 20, 2016 at 3:18 PM, Kakar Nyori wrote: > Wow, from the creator himself! Thank you. >> >> > Just so we're clear, *message.channel_session['key']* is the same as > *request.session['key']*, did I get you correctly? > It's very similar - the difference is that `request.session` lasts f

Re: Understanding django channels persistant data

2016-12-20 Thread Kakar Nyori
Wow, from the creator himself! Thank you. > > Just so we're clear, *message.channel_session['key']* is the same as *request.session['key']*, did I get you correctly? And there's just this another confusion, why can't we us *"text": message.content['text']*, but instead its *"text": message['text

Re: Understanding django channels persistant data

2016-12-20 Thread Andrew Godwin
On Tue, Dec 20, 2016 at 2:00 PM, Kakar Nyori wrote: > I am trying to grasp the concept of persistant data in django channels > . > I have searched the reference and other parts but didn't clear my > confusion. I would

Understanding django channels persistant data

2016-12-20 Thread Kakar Nyori
I am trying to grasp the concept of persistant data in django channels . I have searched the reference and other parts but didn't clear my confusion. I would really appreciate if you help me understand better. consumer