diff --git a/requirements.txt b/requirements.txt index 33beae0..ecc1054 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,6 @@ pylint==3.3.* pylint-django==2.6.* djangorestframework==3.15.* psycopg==3.2.* +channels==4.2.* pylablib==1.4.* camel-converter==4.0.* diff --git a/wlm_server/wlm_server/settings.py b/wlm_server/wlm_server/settings.py index ce02725..991a3a4 100644 --- a/wlm_server/wlm_server/settings.py +++ b/wlm_server/wlm_server/settings.py @@ -35,6 +35,7 @@ # Application definition INSTALLED_APPS = [ + 'channels', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', @@ -82,7 +83,15 @@ }, ] -WSGI_APPLICATION = 'wlm_server.wsgi.application' +ASGI_APPLICATION = 'wlm_server.asgi.application' + +CHANNEL_LAYERS = { + 'default': { + 'BACKEND': 'channels.layers.InMemoryChannelLayer', + }, +} + +AUTH_USER_MODEL = 'user.User' # Database @@ -140,7 +149,8 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' -AUTH_USER_MODEL = 'user.User' + +# Global variables MESSAGE_QUEUE = MessageQueue()