You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python...@googlegroups.com
Hello
I am working with django and trying to extend the chat example.
Is it possible to get url_kwargs in the on_message function in my views.py file?
Or is there any request I can fetch?
Cheers
lsbardel
unread,
Oct 24, 2013, 5:34:53 AM10/24/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to python...@googlegroups.com
On Thursday, October 24, 2013 9:36:04 AM UTC+1, Sebastian Auberger wrote:
Hello
Hi
I am working with django and trying to extend the chat example.
Is it possible to get url_kwargs in the on_message function in my views.py file?
Or is there any request I can fetch?
I'm not sure what you mean by url_kwargs.
The `websocket.handshake` attribute is the WsgiRequest [1] which handled the handshake and therefore you can use it to obtain all information you need from the wsgi environ.
If by url_kwargs you mean a dictionary representation of the `QUERY_STRING` environ entry, than it can be obtained via `websocket.handshake.url_data` attribute.