Fix some incorrect backend layer references

This commit is contained in:
Andrew Godwin 2016-01-17 14:31:04 -08:00
parent a9810014ca
commit 5df99c9cfd
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ custom consumer we wrote above. Here's what that looks like::
# In settings.py
CHANNEL_BACKENDS = {
"default": {
"BACKEND": "channels.backends.database.DatabaseChannelBackend",
"BACKEND": "channels.database_layer.DatabaseChannelLayer",
"ROUTING": "myproject.routing.channel_routing",
},
}

View File

@ -27,10 +27,10 @@ DATABASES = {
CHANNEL_BACKENDS = {
"default": {
"BACKEND": "channels.backends.database.DatabaseChannelBackend",
"BACKEND": "channels.database_layer.DatabaseChannelLayer",
"ROUTING": "testproject.urls.channel_routing",
},
}
if os.environ.get("USEREDIS", None):
CHANNEL_BACKENDS['default']['BACKEND'] = "channels.backends.redis_py.RedisChannelBackend"
CHANNEL_BACKENDS['default']['BACKEND'] = "asgi_redis.RedisChannelLayer"