Ajout de channels
This commit is contained in:
parent
618f89525e
commit
7c2a18bb5d
1 changed files with 12 additions and 1 deletions
|
@ -51,6 +51,7 @@ INSTALLED_APPS = (
|
||||||
'debug_toolbar',
|
'debug_toolbar',
|
||||||
'bootstrapform',
|
'bootstrapform',
|
||||||
'kfet',
|
'kfet',
|
||||||
|
'channels',
|
||||||
)
|
)
|
||||||
|
|
||||||
MIDDLEWARE_CLASSES = (
|
MIDDLEWARE_CLASSES = (
|
||||||
|
@ -88,7 +89,6 @@ TEMPLATES = [
|
||||||
|
|
||||||
# WSGI_APPLICATION = 'cof.wsgi.application'
|
# WSGI_APPLICATION = 'cof.wsgi.application'
|
||||||
|
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
|
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
|
||||||
|
|
||||||
|
@ -162,6 +162,17 @@ RECAPTCHA_PUBLIC_KEY = "DUMMY"
|
||||||
RECAPTCHA_PRIVATE_KEY = "DUMMY"
|
RECAPTCHA_PRIVATE_KEY = "DUMMY"
|
||||||
RECAPTCHA_USE_SSL = True
|
RECAPTCHA_USE_SSL = True
|
||||||
|
|
||||||
|
# Channels settings
|
||||||
|
|
||||||
|
CHANNEL_LAYERS = {
|
||||||
|
"default": {
|
||||||
|
"BACKEND": "asgi_redis.RedisChannelLayer",
|
||||||
|
"CONFIG": {
|
||||||
|
"hosts": [('localhost', 6379)],
|
||||||
|
},
|
||||||
|
"ROUTING": "cof.routing.channel_routing",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def show_toolbar(request):
|
def show_toolbar(request):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue