mirror of
https://github.com/django/daphne.git
synced 2025-04-20 08:42:18 +03:00
Fix auth example imports in Gettings Started guide
Removed unused `transfer_user` import and added missing `channel_session_user_from_http` as import.
This commit is contained in:
parent
e88e0feae9
commit
c171cb4346
|
@ -443,7 +443,7 @@ chat to people with the same first letter of their username::
|
|||
# In consumers.py
|
||||
from channels import Channel, Group
|
||||
from channels.sessions import channel_session
|
||||
from channels.auth import http_session_user, channel_session_user, transfer_user
|
||||
from channels.auth import http_session_user, channel_session_user, channel_session_user_from_http
|
||||
|
||||
# Connected to websocket.connect
|
||||
@channel_session_user_from_http
|
||||
|
|
Loading…
Reference in New Issue
Block a user