Basic real time chat tutorial – Django, Channels and Web Socket

Hi,
a little bit over a month ago, I posted my tutorial here on Reddit ([https://www.reddit.com/r/django/comments/mkmhnb/simple\_django\_realtime\_chat\_app\_tutorial\_simple/](https://www.reddit.com/r/django/comments/mkmhnb/simple_django_realtime_chat_app_tutorial_simple/)).

I have received a lot of positive feedback on this tutorial, but many people have asked for a written version of it.

So I have written a tutorial on the same subject (and content). I hope that many of you are interested in this:
[https://codewithstein.com/django-realtime-chat-app-tutorial-simple-django-tutorial-with-channels-and-redis/](https://codewithstein.com/django-realtime-chat-app-tutorial-simple-django-tutorial-with-channels-and-redis/)

In the tutorial I show you how to set up Django, Channels, Redis (Docker) with a simple frontend where people can join a chat room and chat in real time.

If you don't want to use Redis/Docker, it's possible to just use the built in channel layer/in memory cache like this:
CHANNEL\_LAYERS = {
'default': {
'BACKEND': 'channels.layers.InMemoryChannelLayer',
},
}

Let me know what you think about it 😀 And what do you think, is it necessary to have written versions of a tutorial together with videos?

4 thoughts on “Basic real time chat tutorial – Django, Channels and Web Socket”

  1. I will take a written version over a video any day. A LOT easier to follow, make notes on, reference, look things up in etc 🙂 Will check this out, thanks a bunch for the effort 🙂

    Reply

Leave a Comment