Skip to content

Commit

Permalink
Install channels package
Browse files Browse the repository at this point in the history
See also: #17
  • Loading branch information
BECATRUE committed Nov 28, 2024
1 parent b3ba5c0 commit bcbe496
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ pylint==3.3.*
pylint-django==2.6.*
djangorestframework==3.15.*
psycopg==3.2.*
channels==4.2.*
pylablib==1.4.*
14 changes: 12 additions & 2 deletions wlm_server/wlm_server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
# Application definition

INSTALLED_APPS = [
'channels',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -140,7 +149,8 @@

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

AUTH_USER_MODEL = 'user.User'

# Global variables

MESSAGE_QUEUE = MessageQueue()

Expand Down

0 comments on commit bcbe496

Please sign in to comment.