These are chat archives for django/django

14th
Apr 2018
Hey-tom
@Hey-tom
Apr 14 2018 21:42
Hi Guys anyone using django channels? Have they changed how route works?

from channels.routing import route

from bot.consumers import ws_message, ws_connect, ws_disconnect, msg_races

channel_routing = [
route('websocket.connect', ws_connect),
route('websocket.disconnect', ws_disconnect),
route('websocket.receive', ws_message),
route('race-messages', msg_races)
]

File "/Users/mac/PycharmProjects/testbot/betarb/betarb/betarb/routing.py", line 1, in <module>
from channels.routing import route
ImportError: cannot import name 'route'