Rapid-ChatXChannels
Rapid-ChatXChannels copied to clipboard
A rapid fire tutorial and introduction of Django Channels. To get more in depth check out the full course https://kirr.co/badl8e
Where is broadcast_msg_to_chat method?
Unable to find thread.html file
result = await connection.bzpopmin(channel, timeout=timeout) aioredis.errors.ReplyError: ERR unknown command 'BZPOPMIN' Above error happens and websocket keeps disconnecting
django.core.exceptions.ImproperlyConfigured: Cannot import ASGI_APPLICATION module 'cfehome.routing'
I tried all the way to sort this out even followed stuffs in tutorial line by line but still can't figure this out. I got some asgi application compatibility error...
In the views.py the get_object method throws an error saying > obj, created = Thread.objects.get_or_new(self.request.user, other_username) > TypeError: cannot unpack non-iterable NoneType object This happens when the self.request.user and other_username...
async def chat_message(self, event): #print('message', event) await self.send({ "type": "websocket.send", "text": event['text'] })
Hey, Would you please share the codes?
your code is python3.5 ,actually your code is python3.6
##### Issues * ###### Cannot create superuser until database tables are created * resolution: Run migrations before creating users * ###### Path to requirements.txt is incorrect in "pip install" step...