Skip to content

Commit 21fd23a

Browse files
author
Mark Gibbs
committed
Minimalist addition for django channels to work with runserver command in demo
1 parent 578dcfe commit 21fd23a

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

demo/demo/routing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from channels.routing import ProtocolTypeRouter
2+
3+
application = ProtocolTypeRouter({
4+
})

demo/demo/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
'django.contrib.messages',
3939
'django.contrib.staticfiles',
4040

41+
'channels',
42+
4143
'django_plotly_dash.apps.DjangoPlotlyDashConfig',
4244
]
4345

@@ -71,6 +73,7 @@
7173

7274
WSGI_APPLICATION = 'demo.wsgi.application'
7375

76+
ASGI_APPLICATION = 'demo.routing.application'
7477

7578
# Database
7679
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases

dev_requirements.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
alabaster==0.7.10
22
argh==0.26.2
3+
asgiref==2.3.2
4+
async-timeout==2.0.1
5+
attrs==18.1.0
6+
autobahn==18.6.1
7+
Automat==0.6.0
38
Babel==2.5.3
49
certifi==2018.4.16
10+
channels==2.1.2
511
chardet==3.0.4
612
click==6.7
13+
constantly==15.1.0
14+
daphne==2.2.0
715
dash==0.21.1
816
dash-core-components==0.22.1
917
dash-html-components==0.10.1
@@ -15,8 +23,10 @@ docutils==0.14
1523
Flask==1.0.2
1624
Flask-Compress==1.4.0
1725
grip==4.5.2
26+
hyperlink==18.0.0
1827
idna==2.6
1928
imagesize==1.0.0
29+
incremental==17.5.0
2030
ipython-genutils==0.2.0
2131
itsdangerous==0.24
2232
Jinja2==2.10
@@ -29,6 +39,7 @@ nbformat==4.4.0
2939
packaging==17.1
3040
path-and-address==2.0.1
3141
pathtools==0.1.2
42+
pkg-resources==0.0.0
3243
pkginfo==1.4.2
3344
plotly==2.5.1
3445
port-for==0.3.1
@@ -48,6 +59,9 @@ tornado==5.0.2
4859
tqdm==4.23.3
4960
traitlets==4.3.2
5061
twine==1.11.0
62+
Twisted==18.4.0
63+
txaio==2.10.0
5164
urllib3==1.22
5265
watchdog==0.8.3
5366
Werkzeug==0.14.1
67+
zope.interface==4.5.0

0 commit comments

Comments
 (0)