From aad35757498125d448949e29e136733b384d47fa Mon Sep 17 00:00:00 2001 From: Charlie Hornsby Date: Fri, 25 Mar 2016 16:42:57 +0200 Subject: [PATCH] Remove references to Django project name Update import paths to match standard Django package structure --- docs/getting-started.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/getting-started.rst b/docs/getting-started.rst index fe1ffc0..7b25fa9 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -64,7 +64,7 @@ Here's what that looks like:: # In routing.py from channels.routing import route channel_routing = [ - route("http.request", "myproject.myapp.consumers.http_consumer"), + route("http.request", "myapp.consumers.http_consumer"), ] .. warning:: @@ -113,7 +113,7 @@ Hook it up to the ``websocket.receive`` channel like this:: # In routing.py from channels.routing import route - from myproject.myapp.consumers import ws_message + from myapp.consumers import ws_message channel_routing = [ route("websocket.receive", ws_message), @@ -213,7 +213,7 @@ get the message. Here's all the code:: And what our routing should look like in ``routing.py``:: from channels.routing import route - from myproject.myapp.consumers import ws_add, ws_message, ws_disconnect + from myapp.consumers import ws_add, ws_message, ws_disconnect channel_routing = [ route("websocket.connect", ws_add),