Use channel to dispatch an action to check CPIC.

This commit is contained in:
Drew Larson
2017-05-23 19:25:36 -06:00
parent 3ef3723d01
commit 970a9a3eef
7 changed files with 129 additions and 1 deletions
@@ -33,6 +33,7 @@ INSTALLED_APPS = [
'webpack_loader',
'compressor',
'rest_framework',
'channels',
'registration',
'core',
@@ -176,3 +177,13 @@ REST_FRAMEWORK = {
}
DATE_INPUT_FORMATS = ['iso-8601']
CHANNEL_LAYERS = {
"default": {
"BACKEND": "asgi_redis.RedisChannelLayer",
"CONFIG": {
"hosts": [os.environ.get('REDIS_URL', 'redis://redis:6379')],
},
"ROUTING": "bike.routing.channel_routing",
},
}