hi everyone i have big problem with channels_layer: i have made chat app in my project but when i try to test websocket it give me this error : File “G:\Crafts\ven\Lib\site-packages\channels\layers.py”, line 78, in getitem
self.backends[key] = self.make_backend(key)
^^^^^^^^^^^^^^^^^^^^^^
File “G:\Crafts\ven\Lib\site-packages\channels\layers.py”, line 44, in make_backend
return self._make_backend(name, config)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “G:\Crafts\ven\Lib\site-packages\channels\layers.py”, line 69, in _make_backend
raise InvalidChannelLayerError(
channels.exceptions.InvalidChannelLayerError: Cannot import BACKEND ‘channels_redis.core.RedisChannelLayer’ specified for default
WebSocket DISCONNECT /ws/chat/1/ [127.0.0.1:64786]
, i have already installed the channels
You also need to install channels_redis
, along with having an instance of Redis available to you.
Note: It looks like you’re using Windows?
Redis is not officially supported on Windows.