@@ -53,7 +53,7 @@ your_app/
5353To start, we'll need to use [ ` channels ` ] ( https://channels.readthedocs.io/en/stable/ ) to
5454create a ` ProtocolTypeRouter ` that will become the top of our ASGI application stack.
5555Under the ` "websocket" ` protocol, we'll then add a path for IDOM's websocket consumer
56- using ` django_idom_websocket_consumer_path ` . If you wish to change the route where this
56+ using ` idom_websocket_path ` . If you wish to change the route where this
5757websocket is served from see the [ settings] ( #configuration-options ) .
5858
5959``` python
@@ -62,7 +62,7 @@ import os
6262
6363from django.core.asgi import get_asgi_application
6464
65- from django_idom import django_idom_websocket_consumer_path
65+ from django_idom import idom_websocket_path
6666
6767os.environ.setdefault(" DJANGO_SETTINGS_MODULE" , " test_app.settings" )
6868
@@ -76,7 +76,7 @@ application = ProtocolTypeRouter(
7676 " http" : http_asgi_app,
7777 " websocket" : URLRouter(
7878 # add a path for IDOM's websocket
79- [django_idom_websocket_consumer_path ()]
79+ [idom_websocket_path ()]
8080 ),
8181 }
8282)
@@ -158,17 +158,17 @@ Your view for this template can be defined just
158158## ` urls.py `
159159
160160To your list of URLs you'll need to include IDOM's static web modules path using
161- ` django_idom_web_modules_path ` :
161+ ` idom_web_modules_path ` :
162162
163163``` python
164164from django.urls import path
165- from django_idom import django_idom_web_modules_path
165+ from django_idom import idom_web_modules_path
166166from .views import your_template # define this view like any other HTML template
167167
168168
169169urlpatterns = [
170170 path(" " , your_template),
171- django_idom_web_modules_path (),
171+ idom_web_modules_path (),
172172]
173173```
174174
0 commit comments