Revert to apline:3.11 to stay on Python 3.7 (3.8 has issues with channels)

This commit is contained in:
Eliot Berriot 2020-02-18 15:19:51 +01:00
parent 9a2876469a
commit 14d5b0c69c
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
5 changed files with 39 additions and 5 deletions

View file

@ -8,6 +8,7 @@ from django.core.serializers.json import DjangoJSONEncoder
logger = logging.getLogger(__name__)
channel_layer = get_channel_layer()
group_add = async_to_sync(channel_layer.group_add)
group_discard = async_to_sync(channel_layer.group_discard)
def group_send(group, event):