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): """