Replaced BindingConsumer with Demultiplexer in routing

Seems BindingConsumer was renamed to Demultiplexer but that was forgotten in the routing. Also there was a missing ``/`` in the ``path``
This commit is contained in:
AlexejStukov 2016-07-20 09:58:54 +02:00 committed by GitHub
parent ad8f4663c8
commit 3744bf5e2f

View File

@ -117,11 +117,11 @@ Tie that into your routing, and tie each demultiplexed channel into the
``.consumer`` attribute of the Binding, and you're ready to go::
from channels import route_class
from .consumers import BindingConsumer
from .consumers import Demultiplexer
from .models import IntegerValueBinding
channel_routing = [
route_class(BindingConsumer, path="^binding/"),
route_class(Demultiplexer, path="^/binding/"),
route("binding.intval", IntegerValueBinding.consumer),
]