From 2b712dd05d243e1706c96b5c04124bace8ca2f93 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Wed, 29 Jun 2022 11:10:13 +0200 Subject: [PATCH] Channels 3 --- kfet/open/routing.py | 2 +- kfet/routing.py | 2 +- requirements-prod.txt | 4 ++-- requirements.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kfet/open/routing.py b/kfet/open/routing.py index 6b10b4ec..9d205638 100644 --- a/kfet/open/routing.py +++ b/kfet/open/routing.py @@ -5,6 +5,6 @@ from .consumers import OpenKfetConsumer OpenRouter = URLRouter( [ - path(r"", OpenKfetConsumer), + path("", OpenKfetConsumer.as_asgi()), ] ) diff --git a/kfet/routing.py b/kfet/routing.py index 492f6e4f..a015eebc 100644 --- a/kfet/routing.py +++ b/kfet/routing.py @@ -7,7 +7,7 @@ from .consumers import KPsul KFRouter = URLRouter( [ - path("k-psul/", KPsul), + path("k-psul/", KPsul.as_asgi()), path("open", OpenRouter), ] ) diff --git a/requirements-prod.txt b/requirements-prod.txt index 2f6c556b..ffd21935 100644 --- a/requirements-prod.txt +++ b/requirements-prod.txt @@ -6,10 +6,10 @@ psycopg2<2.8 # Redis django-redis-cache==3.0.* redis~=2.10.6 -channels-redis==2.4.* +channels-redis==3.4.* # ASGI protocol and HTTP server -daphne==2.5.* +daphne==3.0.* # ldap bindings python-ldap diff --git a/requirements.txt b/requirements.txt index 05d0126f..9e0b8b8e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ Pillow django-bootstrap-form==3.3 statistics==1.0.3.5 django-widget-tweaks==1.4.1 -channels==2.4.* +channels==3.0.* python-dateutil wagtail==2.13.* wagtailmenus==3.*