2016-05-29 08:29:14 +02:00
|
|
|
from channels.asgi import get_channel_layer
|
|
|
|
|
|
|
|
from .utils.main import setup_django_settings_module
|
|
|
|
|
|
|
|
# Loads the openslides setting. You can use your own settings by setting the
|
|
|
|
# environment variable DJANGO_SETTINGS_MODULE
|
|
|
|
setup_django_settings_module()
|
|
|
|
|
|
|
|
channel_layer = get_channel_layer()
|
2017-11-10 18:14:15 +01:00
|
|
|
|
|
|
|
# Use native twisted mode
|
|
|
|
channel_layer.extensions.append("twisted")
|