From 3744bf5e2f4be325cc4cb1a3a2109ea44dcd3ed8 Mon Sep 17 00:00:00 2001 From: AlexejStukov Date: Wed, 20 Jul 2016 09:58:54 +0200 Subject: [PATCH] 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`` --- docs/binding.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/binding.rst b/docs/binding.rst index b78b1cb..6bdfdea 100644 --- a/docs/binding.rst +++ b/docs/binding.rst @@ -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), ]