diff --git a/requirements.txt b/requirements.txt index 0300057..a070c55 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,5 @@ pylint==3.3.* pylint-django==2.6.* djangorestframework==3.15.* psycopg==3.2.* +channels==4.2.* pylablib==1.4.* diff --git a/wlm_server/wlm_server/settings.py b/wlm_server/wlm_server/settings.py index 402211f..945301a 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,6 +149,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' -AUTH_USER_MODEL = 'user.User' + +# Global variables MESSAGE_QUEUE = MessageQueue()