Well, I did it.  I frankensteined my way to a working Django 3.0+ and 
Channels 3.0 demo project!  Here is where I went.  I started at: 
https://testdriven.io/blog/django-channels/#add-channels. I cannot stress 
this enough, I started at the add-channels section!  During my time in 
following the instructions, I had to install Redis from source and I found 
those instructions at: https://realpython.com/python-redis/ Once I was done 
installing from source, I was back to following the first URL's 
instructions.  I figured out that I had to start the redis server with 
redis-server command.  This is how you are able to complete the below 
commands.  This is where I stopped following the instructions from the 
first URL.
>>> import channels.layers 
>>> channel_layer = channels.layers.get_channel_layer()
>>> from asgiref.sync import async_to_sync 
>>> async_to_sync(channel_layer.send)('test_channel', {'type': 'hello'}) 
>>> async_to_sync(channel_layer.receive)('test_channel') {'type': 'hello'}

I finished things off with the YouTube video of: 
https://www.youtube.com/watch?v=R4-XRK6NqMA&t.  That is the best I can do 
you right now.  My brain is mush.

On Monday, January 24, 2022 at 2:59:52 PM UTC-5 [email protected] 
wrote:

> I am a huge fan of Django.  But I will agree that the documentation is 
> most areas beyond the absolute basics is abysmal.  I have a lot written in 
> Django in Class Based Views because I read early on they were the way to 
> go.  I'm not going to tell you how much research and time it took me but it 
> was a lot.  Django is super powerful and it's amazing....but the 
> documentation...while maybe better than any other framework is still very 
> lacking for people in my humble opinion.  The documentation and books that 
> I've come across are written in a way that they assume you already 
> understand it and they pick up from there.  Love django.  Agree with the 
> comment about documentation about Channels and as I've expressed most of 
> the other documentation as well.
>
>
>
> ------------------------------
> *From:* [email protected] <[email protected]> on behalf 
> of [email protected] <[email protected]>
> *Sent:* Monday, January 24, 2022 6:03 AM
> *To:* Django users <[email protected]>
> *Subject:* Re: Lack of tutorials and explanations about channels 
>  
> You and me both are on the same page about documentation about Channels.  
> I tried to follow: Django Channels Tutorial 🔥: the most minimal Real 
> Time app (not Chat) | Django WebSockets 
> <https://www.youtube.com/watch?v=R4-XRK6NqMA> on YouTube, but I kept 
> running into issues.  If you can follow this video, and figure it out, let 
> me know if it is missing something.
>
> On Wednesday, November 10, 2021 at 8:48:31 AM UTC-5 Dossou Mawussekuifan 
> Gloria Donald KANTI wrote:
>
> Why aren't there much tutorials and explanations about Channels and 
> websocket integration in django over the internet ? Quite confusing. How 
> can we get to know and understand it more if nobody wants to explain it. I 
> am new to python and drf, wanna implement some realtime features in my app 
> but no chance to get good resources explaining very well how things can be 
> done. If there are some pros here knowing very well about the topic please, 
> write some blog or make some detailed youtube videos to explain the topic. 
> It will really help me and others in the future. It is crucial also for the 
> image of django. Thank you
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/902feb53-0009-4e5b-946e-4f027daa64a6n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/902feb53-0009-4e5b-946e-4f027daa64a6n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ffb2fc74-5825-461b-9214-e210ddf49ab5n%40googlegroups.com.

Reply via email to