diff --git a/docs/getting-started.rst b/docs/getting-started.rst index f7a0b7e..c6924ee 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -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", }, } diff --git a/testproject/testproject/settings.py b/testproject/testproject/settings.py index 5bae6cb..19d9ecf 100644 --- a/testproject/testproject/settings.py +++ b/testproject/testproject/settings.py @@ -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"