from channels.routing import route_class from .consumers import SubjectConsumer, InvestorConsumer, JumpConsumer from otree.channels.routing import channel_routing channel_routing += [ route_class(SubjectConsumer, path=r"^/hft/(?P\w+)/(?P\w+)/(?P\w+)/"), route_class(InvestorConsumer, path=r"^/hft_investor/(?P\w+)/"), route_class(JumpConsumer, path=r"^/hft_jump/(?P\w+)/"), ]