Learn Django - Build an Asynchronous Chatroom with Django and Channels

preview_player
Показать описание
In this Django tutorial we learn the theory behind WebSocket's, ASGI, and Channels and then go on to build a chatroom to demonstrate how to use and build asynchronous applications.

Windows Users:
==================
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools

Download:
3.Run and install build tools

00:00 Introduction
01:24 Project specifications
02:35 Synchronous Vs Asynchronous
07:35 WebSockets
14:56 Channels
18:52 Start developing - create virtual environment & install Django
20:31 Install Channels
33:58 Routing
39:37 Consumer
44:09 Consumer - connect
51:43 Consumer - disconnect
55:57 Front-end
1:05:57 Remember accept is needed to allow WS connections
1:09:20 Channel layer configuration (Redis optional)
1:12:09 Finishing the chatroom

Code Repository:

Codebase and further reading:

SUBSCRIBE to get more free tutorials, courses and code snippets!

Follow us on Facebook

Follow use on Twitter:
Рекомендации по теме
Комментарии
Автор

This tutorial is by far THE BEST Django Channels tutorial I have encountered. This provides the greatest step by step direction and clarity. Thank you!

marc
Автор

Ok, I have looking for a source to learn about Django Websocket for the whole week and this video truly saved my ass. Any other videos altho may has more views but just kinda rush into the tutorial without explaining anything. This video is super informative and great explaination.
Your channel is a gem. Thank you so much. Keep up the great work.

quocbao
Автор

Yay! Channels takes django to next level. Thank you so much for this.

Could you please show us how to deploy this as well.. Because I've not seen any good content on deploying channels to a production grade server. If you're making any series on this that would be a great content.

Loving all your Django content. Keep up the good work. And again, thank you so much 🙏🏼

aashayamballi
Автор

duuude you are on your way to save me in my current project at school! We are doing this way too advanced project, and this is just what I needed

thobiaslarsen
Автор

This is gold. The best tutorial. Keep em coming

ammu__
Автор

This is really brilliant work that you're doing. Thank you!

Yahookudi
Автор

Thank you so much!! You are the best Django teacher... Gaining alot from you

anthonychianain
Автор

I really felt that I've learned and accomplished something at the end of the video, thank you!!!

stellaofthelake
Автор

Big thanks to this channel for making such beautiful content, After watching this video documentation is so easy to understand.

shashikantsingh
Автор

Hey! This is amazing! Thank you so much! Could you please advise in what order should a beginner watch all your playlists to gain complete knowledge and become proficient in Django? Just a piece of advice you can make a short video of this or mention it in any of your upcoming videos. Lastly, thanks again for creating these videos and making them available to global users for free.

swapnilsharma
Автор

Great work for a boilerplate, THANK YOU.

aysershuhaib
Автор

another excellent Django tutorial, and you so appreciated by the Django

janirico
Автор

that was really helpful for me .
you are serving such a brilliant service to us
Thanks a lot

maimunarahman
Автор

is there ANY way to integrate real time communication in a WSGI server?

absurdity
Автор

Thank you for the tutorial!! Helped a lot

VanessaCarvalhoLima
Автор

Explained very beautifully, Thank you 🙏

yashm
Автор

really amazing, I would like to see more tutorials
tq so much it just works fine

sheldondsouza
Автор

Every time I see it for building the project, I fell asleep in just a few minutes. Is it only me or its his voice that make me feel sleepy.

RajatSharma-erni
Автор

Thank you so much for this amazing lecture! I loved your explanation about project specifications and concepts.

runner-learner
Автор

You, sir, are a great teacher! Thank you :D

ShubhamSingh-lugy