Build Realtime Chat App with Django Channels & Web Sockets

Опубликовано: 19 Февраль 2026
на канале: THE PROTON GUY
20,140
428

Learn how to build a real-time chatting website using Django Channels and WebSockets in this comprehensive tutorial. Follow along as we explore the powerful Django framework, implement Django Channels to enable WebSocket communication, and create a dynamic chat application.

*** Resources ***
Github repo: https://github.com/TheProtonGuy/Djang...

HTML files: https://github.com/TheProtonGuy/Djang...

*** Timestamps ***
0:00 Intro & Demo
2:36 Project Setup
6:11 What are web sockets?
15:20 Creating Models
19:22 Template Files
20:10 Creating Necessary Views
21:05 Mapping Views To Urls
25:24 Creating Chat Rooms
33:05 Redirecting to Chat Room
35:30 Message View(Chat Room View)
41:00 Creating Consumers
43:10 Connect Method For Consumers
44:12 Disconnect Method For Consumers
44:58 Routing Consumer To Url
47:48 Register routing.py urls in Asgi.py
50:34 Add asgi.py configurations to settings.py
53:18 Creating a web socket
58:20 Web socket connection event handlers
1:01:38 Event listener for sending messages
1:07:10 Consumer methods to receive & send messages
1:22:52 Socket event listener for server response
1:32:45 Testing the code!

******* Socials *******

Discord:   / discord  

Patreon:   / theprotonguy  

Linkedin:   / ayodeji-adesola-15392a22b  

Instagram:   / the_proton_guy  

Telegram channel: https://t.me/sO6ZFOaiaMszYzI0

Twitter:   / ayodejiadesola_  

#WebDevelopment #Python #ChatApplication #DjangoTutorial #DjangoFramework #PythonWebDevelopment #RealTimeChat #WebSocketTutorial #DjangoChatApp #CodingTutorial #PythonProgramming #WebSocketsInPython"