0.3.4
chat v3
This commit is contained in:
@@ -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)],
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user