Skip to content

Commit addae17

Browse files
authored
django channels upgrade from 2 to 3 (#11)
* django channels upgrade from 2 to 3 * channel-redis also required to upgrade from 3.1 -> 3.2
1 parent b895355 commit addae17

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

chat/routing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
from . import consumers
44

55
websocket_urlpatterns = [
6-
re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer),
6+
re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer.as_asgi()),
77
]

requirements

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ attrs==20.2.0
66
autobahn==20.7.1
77
Automat==20.2.0
88
cffi==1.14.2
9-
channels==2.4.0
10-
channels-redis==3.1.0
9+
channels==3.0.3
10+
channels-redis==3.2.0
1111
constantly==15.1.0
1212
cryptography==3.1
13-
daphne==2.5.0
13+
daphne==3.0.2
1414
Django==3.1.1
1515
hiredis==1.1.0
1616
hyperlink==20.0.1

0 commit comments

Comments
 (0)