How to build a Chat App with Django Channels and WebSockets in 2 Hours

preview_player
Показать описание
🚀 Learn how to build a real-time chat application using Django, WebSocket, and the Daphne server! In this tutorial, we'll walk you through creating a chat app from scratch, featuring a sleek login screen where users can enter their username and the room they want to join.

Once logged in, users are taken to the chat screen, where messages are sent and received in real-time using WebSocket connections. This allows multiple users to chat simultaneously, making it perfect for group discussions, team collaborations, or just chatting with friends.

📺 Timestamps:
00:00:00 Introduction
00:01:35 App Demo
00:07:30 Prerequisites
00:08:22 Setting up the Development Enviroment
00:14:34 App Illustration
00:18:12 Building the Project

Whether you're new to Django or looking to enhance your WebSocket skills, this tutorial is perfect for you. Join us as we dive into the world of real-time communication and build something awesome together!

🌐 Other Django Tutorials

🌐 Stay Connected:
Subscribe for more Python tutorials, coding insights, and programming philosophy. Join our community, and let's grow together!

🌐 Social Links:

👉 Don't forget to subscribe, like, and hit the bell icon for more exciting tutorials! Happy coding! 🚀✨
Рекомендации по теме
Комментарии
Автор

Thank you so much. Clear and concise. Keep it up brother 🚀

Ali-plhq
Автор

REALY NICE !!!! THX for Sharing !!!! Greeetings from Italy<3

flowa
Автор

Thank you. This video helped me a lot to practice this topic.

pablo_morab
Автор

Amazing.... I watched your video three times. I just created my own AI chat bot with the idea implemented here

MeMamy
Автор

ImportError: DLL load failed while importing _rust: The specified procedure could not be found.

Hello I'm getting the above error when I try to add daphne and run my application with daphne commented from the install apps list the error doesnt occurs please help

shrenikbadjate
Автор

This was the worst lecture with the best teaching on Django Chat App 😂. If you had prepared a little, I’m sure this would have been the best one. So, don’t take my comment negatively-cuz I’m still giving you kudos for making it so easy. If I had found your video 3 days ago, I could’ve saved at least 24 hours of my time figuring out this chat app thing cuz I followed another YouTuber’s video which was not only complicated but also that didn’t work for me as he used HTMX bases code and it never triggered a websocket connection. Anyway, can you tell me why you added “room_” in front of the scope in your connect method in ChatConsumer class? Not only I couldn’t figure out why you did that, I also found that it works just fine without that part.

PeterPan-smlp
Автор

Can you give me the home.html and room.html files? Thank you.

DMons_DuyDuc
Автор

Awesome tutorial, but how do I make it strictly a one to one chat like WhatsApp with a name you click on to initiate a chat, most of the videos I've seen seem to always create group chats

OluwapemisinAwolesi
Автор

Everthing is good till now but bro please change your pop up sound which comes for reminding to subscribe the channel it was so not good at all please work on that . Thank you

Shivforall
Автор

Please add the link to the repo of the project. Thankss

BwaveICT
Автор

can this be deployed to server directly

EfeRoy
join shbcf.ru