On Tue, Dec 20, 2016 at 3:18 PM, Kakar Nyori <[email protected]> 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 for the user's entire session length (which can be months), whereas `channel_session` just lasts for the lifetime of a single open WebSocket. It's a place to put socket state, since you can't use local variables. > > And there's just this another confusion, why can't we us *"text": > message.content['text']*, but instead its *"text": message['text']*? > Both are valid; there's a shortcut for message.__getitem__ that just calls message.content.__getitem__. Andrew -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFwN1uq9sgiuMnuk8rbqyeGd489tAnWDusjx15-u8SSQBDtJGw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

