Skip to content

Commit

Permalink
django channels upgrade from 2 to 3 (#11)
Browse files Browse the repository at this point in the history
* django channels upgrade from 2 to 3

* channel-redis also required to upgrade from 3.1 -> 3.2
  • Loading branch information
josnin authored Apr 29, 2021
1 parent b895355 commit addae17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chat/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
from . import consumers

websocket_urlpatterns = [
re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer),
re_path(r'ws/chat/(?P<room_name>\w+)/$', consumers.ChatConsumer.as_asgi()),
]
6 changes: 3 additions & 3 deletions requirements
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ attrs==20.2.0
autobahn==20.7.1
Automat==20.2.0
cffi==1.14.2
channels==2.4.0
channels-redis==3.1.0
channels==3.0.3
channels-redis==3.2.0
constantly==15.1.0
cryptography==3.1
daphne==2.5.0
daphne==3.0.2
Django==3.1.1
hiredis==1.1.0
hyperlink==20.0.1
Expand Down

0 comments on commit addae17

Please sign in to comment.