From 513f2a887f37c79dcc8f6a0510236b28fa7d699e Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Fri, 10 Nov 2017 18:14:15 +0100 Subject: [PATCH] Use native twisted for daphne --- .gitignore | 2 +- CHANGELOG | 1 + openslides/asgi.py | 3 +++ requirements_big_mode.txt | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e38e0c0e8..29a6676c3 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,7 @@ docs/_build/* *.egg-info build/* dist/* -debug/ +debug/* .DS_Store .idea diff --git a/CHANGELOG b/CHANGELOG index b0af8d9a3..aca261f09 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -96,6 +96,7 @@ Core: - Added 'go to top'-link [#3404]. - Added caching for the index views [#3419, #3424]. - Added projector prioritization [#3425]. +- Use native twisted mode for daphne [#3487]. Mediafiles: - Fixed reloading of PDF on page change [#3274]. diff --git a/openslides/asgi.py b/openslides/asgi.py index f7ac7ec68..441a46beb 100644 --- a/openslides/asgi.py +++ b/openslides/asgi.py @@ -7,3 +7,6 @@ from .utils.main import setup_django_settings_module setup_django_settings_module() channel_layer = get_channel_layer() + +# Use native twisted mode +channel_layer.extensions.append("twisted") diff --git a/requirements_big_mode.txt b/requirements_big_mode.txt index c9cd18bb4..0f203a3e8 100644 --- a/requirements_big_mode.txt +++ b/requirements_big_mode.txt @@ -6,3 +6,4 @@ asgi-redis>=1.3,<1.4 django-redis>=4.7.0,<4.8 django-redis-sessions>=0.5.6,<0.6 psycopg2>=2.7,<2.8 +txredisapi==1.4.4