I am using channels 2.x (along with nginx, daphne, redis and gunicorn)
In the local console I can see the user data I added in the chat consumer but not in my production environment (in production everything else works, but the user is undefined. Note: the user is logged in. Does anyone have any idea why that might be? I followed the doc tutorial and the only thing i added was the line commented below class ChatConsumer(WebsocketConsumer): def chat_message(self, event): message = event['message'] # Send message to WebSocket self.send(text_data=json.dumps({ 'user': self.scope["user"].first_name, # <<< this is the line I added 'message': message })) Thanks, Adam -- 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 django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/83adb17f-da67-4c2e-aec2-658566a43e7e%40googlegroups.com.