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:
1.https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-2.studio-2019 (at bottom select Build Tools for Visual Studio 2019)
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:
https://github.com/veryacademy/YT-Django-Project-Chatroom-Getting-Started
Codebase and further reading:
https://channels.readthedocs.io/en/latest/tutorial/index.html
SUBSCRIBE to get more free tutorials, courses and code snippets!
http://www.youtube.com/channel/UC1mxuk7tuQT2D0qTMgKji3w?sub_confirmation=1
Follow us on Facebook
https://www.facebook.com/Veryacademycom-113232103670580/
Follow use on Twitter:
https://twitter.com/VeryAcademy