From 7c2a18bb5d77567161f6b39692216660f9c06159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sun, 14 Aug 2016 20:31:22 +0200 Subject: [PATCH] Ajout de channels --- cof/settings_dev.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cof/settings_dev.py b/cof/settings_dev.py index ad2b0b64..7124ed46 100644 --- a/cof/settings_dev.py +++ b/cof/settings_dev.py @@ -51,6 +51,7 @@ INSTALLED_APPS = ( 'debug_toolbar', 'bootstrapform', 'kfet', + 'channels', ) MIDDLEWARE_CLASSES = ( @@ -88,7 +89,6 @@ TEMPLATES = [ # WSGI_APPLICATION = 'cof.wsgi.application' - # Database # https://docs.djangoproject.com/en/1.8/ref/settings/#databases @@ -162,6 +162,17 @@ RECAPTCHA_PUBLIC_KEY = "DUMMY" RECAPTCHA_PRIVATE_KEY = "DUMMY" 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): """