fe64941aab
Uses django channels instead of tornado for the autoupdate. Therefore tornado is nolonger a dependency of OpenSlides (but channels). This uses websockets instead of SockJS. Use the flag insecure in the start command to provide static files serving. Use a new session backend that has a ForeignKey to User.
10 lines
290 B
Python
10 lines
290 B
Python
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()
|