Django Realtime Chat App Tutorial - Simple Python Django Tutorial With Channels And Redis

preview_player
Показать описание
Learn how to build a simple realtime chat application using Django, Python, Web sockets, Channels and Redis.

To do list for this Django tutorial

-Set up the environment and install everything
-Create the front page
-Create the room page
-Connecting to a room
-Sending messages to each other
-Storing messages in a database

Messages are stored in a database, so it's even possible to see old messages.

To connect with the backend, I use Web Sockets (Vanilla JavaScript). To add async support to Django, I use Channels.

Redis is used as a in-memory cache for Channels.

The chat we build in this Django tutorial is very basic, and it's mostly to demonstrate how it can be done.

The code we put together here, can be used as a bare for something much bigger like a Slack clone and similar. But that requires a lot of work of course.

---

Important links

---

#codewithstein #django #djangochat #channels #redis #learndjango #javascript #python #websockets
Рекомендации по теме
Комментарии
Автор

Woohooo... Finally.
Been waiting for this!

CodeWithTomi
Автор

Excellent, a few months ago asked for this tutorial finally you are started, thank you so much for the tutorial

nagarajreddy
Автор

What an excellent tutorial!!!! Can't wait for the new advanced version to drop soon!!

theearthish
Автор

Thanks a lot, Bro! Awesome tutorial. its my first time to see you on Youtube, you are great

ahmeddoudou
Автор

I have been looking for an up-to-date tutorial on this. Thanks

mahmoudtokura
Автор

Hello ) Can you show please how to upload images by websockets ))

SpaciX
Автор

Another excellent tutorial regarding how to build a simple realtime chat application using Django, Web sockets, Channels and Redis.

dalestewart
Автор

Hey, you helped me keep my job, thanks a lot!!

EverDragons
Автор

Thanks man, you and your discord channel are very helpful ❤💝

StayWithTAREK
Автор

Greetings, Stein is at it again, smiles, awesome!!!! as always, many thanks sir

TheYtppk
Автор

Great content as always.
1000 thanks Stein.

trelargiris
Автор

Hi Stein.
Thank you, nice tutorial.

I navigated to GitHub page of this project. Maybe you did not notice, but there is no 'requirements.txt' (or 'pyproject.toml') for dependencies. I also navigated to other chat project page, and there is also no requirements file.
It would be good to have it committed as well. It will be helpful.

Regards.

GevorgVardanyan
Автор

i really appreciate your work, but lots of people are saying that django is becoming obsolete, some company / organizations are moving their backend from django, what do you think?

shakilab
Автор

though I suffer with installation of docker in windows...but the tutorial was great !

abdullashafi
Автор

Learning a lot.. thanks for the tutorial... really appreciate... ✨✨✨

aareezsyed
Автор

Thanks for video Stein🤩, but I think real world applications will be more useful 🤗🤗🤗

sevdimaliisa
Автор

thanks for the tut! superb content, i was wondering how can i do this chat, but more as a group chat (live chat) with several users, being those users registered with django auth and not from the front-end? thanks in advance

intruso
Автор

nice, thanks for this tutorial, congrats!

TS-uehe
Автор

awesome
Finally a chat app.
Thank You so much

sazidahmed
Автор

This chat apps will for two user s or multiple users

nagarjunau