mirror of
https://github.com/django/daphne.git
synced 2025-07-10 16:02:18 +03:00
Merge pull request #99 from chornsby/patch-1
Remove references to Django project name
This commit is contained in:
commit
49d32a71e3
|
@ -64,7 +64,7 @@ Here's what that looks like::
|
||||||
# In routing.py
|
# In routing.py
|
||||||
from channels.routing import route
|
from channels.routing import route
|
||||||
channel_routing = [
|
channel_routing = [
|
||||||
route("http.request", "myproject.myapp.consumers.http_consumer"),
|
route("http.request", "myapp.consumers.http_consumer"),
|
||||||
]
|
]
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
|
@ -113,7 +113,7 @@ Hook it up to the ``websocket.receive`` channel like this::
|
||||||
|
|
||||||
# In routing.py
|
# In routing.py
|
||||||
from channels.routing import route
|
from channels.routing import route
|
||||||
from myproject.myapp.consumers import ws_message
|
from myapp.consumers import ws_message
|
||||||
|
|
||||||
channel_routing = [
|
channel_routing = [
|
||||||
route("websocket.receive", ws_message),
|
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``::
|
And what our routing should look like in ``routing.py``::
|
||||||
|
|
||||||
from channels.routing import route
|
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 = [
|
channel_routing = [
|
||||||
route("websocket.connect", ws_add),
|
route("websocket.connect", ws_add),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user