##// END OF EJS Templates
add asgi.py
Renato-TUF -
r373:607cbdade291
parent child
Show More
@@ -0,0 +1,13
1 import os
2
3 from channels.routing import ProtocolTypeRouter
4 from django.core.asgi import get_asgi_application
5
6 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
7
8 application = ProtocolTypeRouter(
9 {
10 "http": get_asgi_application(),
11 # Just HTTP for now. (We can add other protocols later.)
12 }
13 ) No newline at end of file
@@ -26,6 +26,8 RUN apt-get clean && apt-get update && apt-get install -y --no-install-recommend
26 && pip install -v --timeout 120 --no-cache-dir ./requests-2.28.2-py3-none-any.whl \
26 && pip install -v --timeout 120 --no-cache-dir ./requests-2.28.2-py3-none-any.whl \
27 && pip install -v --timeout 120 --no-cache-dir ./redis-4.4.2-py3-none-any.whl \
27 && pip install -v --timeout 120 --no-cache-dir ./redis-4.4.2-py3-none-any.whl \
28 && pip install -v --timeout 120 --no-cache-dir ./graphene_django-3.0.0-py2.py3-none-any.whl \
28 && pip install -v --timeout 120 --no-cache-dir ./graphene_django-3.0.0-py2.py3-none-any.whl \
29 && pip install -v --timeout 120 --no-cache-dir ./channels-4.0.0.tar.gz \
30 && pip install -v --timeout 120 --no-cache-dir ./daphne-4.0.0.tar.gz \
29 #&& pip install -v --timeout 120 -r requirements.txt --no-cache-dir \
31 #&& pip install -v --timeout 120 -r requirements.txt --no-cache-dir \
30 && apt-get purge -y --auto-remove gcc g++\
32 && apt-get purge -y --auto-remove gcc g++\
31 && rm -rf /var/lib/apt/lists/*
33 && rm -rf /var/lib/apt/lists/*
@@ -85,7 +85,7 TEMPLATES = [
85 ]
85 ]
86
86
87 WSGI_APPLICATION = 'radarsys.wsgi.application'
87 WSGI_APPLICATION = 'radarsys.wsgi.application'
88
88 ASGI_APPLICATION = 'radarsys.asgi.application'
89
89
90 # Database
90 # Database
91 # https://docs.djangoproject.com/en/1.8/ref/settings/#databases
91 # https://docs.djangoproject.com/en/1.8/ref/settings/#databases
@@ -10,3 +10,5 celery==5.2.7
10 gunicorn==20.1.0
10 gunicorn==20.1.0
11 requests==2.28.2
11 requests==2.28.2
12 redis==4.4.2
12 redis==4.4.2
13 channels==4.0.0
14 daphne==4.0.0
General Comments 0
You need to be logged in to leave comments. Login now