chat v3
This commit is contained in:
SDE
2023-08-13 13:25:21 +03:00
parent 0a8151f8fa
commit a5362bd2ad
11 changed files with 143 additions and 92 deletions

View File

@@ -33,7 +33,9 @@ ALLOWED_HOSTS = ["*"]
# Application definition
INSTALLED_APPS = [
'channels',
# 'channels',
"daphne",
'ChatServiceApp',
'modeltranslation',
'django.contrib.admin',
@@ -51,7 +53,7 @@ INSTALLED_APPS = [
'AuthApp',
'RoutesApp',
'ReferenceDataApp',
'ChatServiceApp',
]
MIDDLEWARE = [
@@ -86,12 +88,16 @@ TEMPLATES = [
},
]
# WSGI_APPLICATION = 'TWB.wsgi.application'
WSGI_APPLICATION = 'TWB.wsgi.application'
ASGI_APPLICATION = 'TWB.asgi.application'
CHANNEL_LAYERS = {
'default': {
'BACKEND': 'channels.layers.InMemoryChannelLayer'
# 'BACKEND': 'channels.layers.InMemoryChannelLayer'
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [("127.0.0.1", 6379)],
},
}
}