From 768722dc64540a2e825891993139bbfe0b864859 Mon Sep 17 00:00:00 2001 From: Hiroki Kiyohara Date: Thu, 9 Jul 2015 16:10:39 +0900 Subject: [PATCH] Fixed wrong code on doc `.send()` won't get positional arguments. --- docs/getting-started.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started.rst b/docs/getting-started.rst index 67054cc..cf97437 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -26,7 +26,7 @@ app, and put this in a ``consumers.py`` file in the app:: @Channel.consumer("django.wsgi.request") def http_consumer(response_channel, path, **kwargs): response = HttpResponse("Hello world! You asked for %s" % path) - Channel(response_channel).send(response.channel_encode()) + Channel(response_channel).send(**response.channel_encode()) The most important thing to note here is that, because things we send in messages must be JSON-serialisable, the request and response messages