Learn Django - Build an Asynchronous Chatroom with Django and Channels

Share this & earn $10
Very Academy
Published at : 16 Jan 2021
9340 views
363
3

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
django channelsdjango chat roomchatroom django

1.5 - Schedule and logistics

1.5 - Schedule and logistics

PXSL Semifinal Vikendi Match Chicken | Qualified For Final 🔥 | 4K

PXSL Semifinal Vikendi Match Chicken | Qualified For Final 🔥 | 4K

Road job finish.

Road job finish.

Why Ollie Chose Rim Brakes For His New Pinarello Dogma F12

Why Ollie Chose Rim Brakes For His New Pinarello Dogma F12

If you can't

If you can't

Sammy Davis sings I Dreamed a Dream

Sammy Davis sings I Dreamed a Dream

Our 1st Manufacturing plant in India. #MakeInIndia #MadeInIndia #India

Our 1st Manufacturing plant in India. #MakeInIndia #MadeInIndia #India

[2017MAMA x M2] 방탄소년단 Reaction to 볼빨간 사춘기's Performance

[2017MAMA x M2] 방탄소년단 Reaction to 볼빨간 사춘기's Performance

See Problems As Opportunities | Mona Patel | TEDxNewBedford

See Problems As Opportunities | Mona Patel | TEDxNewBedford

VERY LUCKY MINECRAFT MOMENTS IN ONE VIDEO

VERY LUCKY MINECRAFT MOMENTS IN ONE VIDEO

Articles | question and answers from previous Madhya Pradesh teachers eligibility exam

Articles | question and answers from previous Madhya Pradesh teachers eligibility exam

How BTS Paved the Way Part 2: BTS' Impact on US & Europe Perception of Korean Artists

How BTS Paved the Way Part 2: BTS' Impact on US & Europe Perception of Korean Artists

Sesame Street: One of These Things

Sesame Street: One of These Things

Diana and Roma play Outdoor Games & Activities for kids

Diana and Roma play Outdoor Games & Activities for kids

FIFA 21 - TOTY RONALDO IN A PACK!!! (1st IN THE WORLD)

FIFA 21 - TOTY RONALDO IN A PACK!!! (1st IN THE WORLD)

FUNSUN UV Printer—Able to print on a variety of materials

FUNSUN UV Printer—Able to print on a variety of materials

THE R9 AND KILO ARE GETTING REPLACED?!

THE R9 AND KILO ARE GETTING REPLACED?!

DON'T TRADE BITCOIN UNTIL YOU SEE THIS CHART!!!!!!!!!!!!!!!!

DON'T TRADE BITCOIN UNTIL YOU SEE THIS CHART!!!!!!!!!!!!!!!!

Skin problems - Interview with Dr. Yael Adler | In Good Shape

Skin problems - Interview with Dr. Yael Adler | In Good Shape

Can 6 Psychics Predict The Fake Psychic? | Odd Man Out

Can 6 Psychics Predict The Fake Psychic? | Odd Man Out

Max Richter - November

Max Richter - November

WORLD'S MOST FAMOUS Magic Tricks Finally Revealed ▶3 | Penn and Teller Fool Us

WORLD'S MOST FAMOUS Magic Tricks Finally Revealed ▶3 | Penn and Teller Fool Us

Airports in Punjab(पंजाब के हवाई अड्डे) || Punjab Airports List || International Airports of Punjab

Airports in Punjab(पंजाब के हवाई अड्डे) || Punjab Airports List || International Airports of Punjab

Kareena Kapoor Khan On Bollywood Public against Bollywood gang Hindi film industry Boycott Bollywood

Kareena Kapoor Khan On Bollywood Public against Bollywood gang Hindi film industry Boycott Bollywood

PAPER DOLLS DRESS UP WARDROBE WITH CLOTHES TUTORIAL

PAPER DOLLS DRESS UP WARDROBE WITH CLOTHES TUTORIAL

Top 10 Most Venomous Animals On Earth

Top 10 Most Venomous Animals On Earth

How To Guard Yourself Against Shaitan?  Omar Suleiman

How To Guard Yourself Against Shaitan? Omar Suleiman

Iraq to Get Help from IMF, World Bank and the EU; Turkey's Fears the Worst With New Admin

Iraq to Get Help from IMF, World Bank and the EU; Turkey's Fears the Worst With New Admin

JEROEN TESTEN OP DE EYE TRACKER CHALLENGE

JEROEN TESTEN OP DE EYE TRACKER CHALLENGE

OSHO: Just Be Responsible to Yourself

OSHO: Just Be Responsible to Yourself

baby deciding on the new s21

baby deciding on the new s21

Security and defence: Has the time come for an EU army?

Security and defence: Has the time come for an EU army?

How To Strike A Soccer Ball | Hit It Clean And Accurately

How To Strike A Soccer Ball | Hit It Clean And Accurately

False Impression

False Impression

Services and its Characteristics

Services and its Characteristics

Bayside "Winter"

Bayside "Winter"

RIDICULOUS PRANKS FOR SCHOOL || Crazy and Funny Pranks on Friends by La La Life Musical

RIDICULOUS PRANKS FOR SCHOOL || Crazy and Funny Pranks on Friends by La La Life Musical

EL CAPITAIN by 19th

EL CAPITAIN by 19th

SICK INDIVIDUALS & Vigel - Runaway ft. Nazzereene

SICK INDIVIDUALS & Vigel - Runaway ft. Nazzereene

How to Be Cool, Calm & Collected Under Pressure | Eternal Zen Mode | Powerful Sigma Male

How to Be Cool, Calm & Collected Under Pressure | Eternal Zen Mode | Powerful Sigma Male

Kuji Dead Live: новогодний подарок (Каргинов, Коняев, Сабуров)

Kuji Dead Live: новогодний подарок (Каргинов, Коняев, Сабуров)

At Least one patient a day

At Least one patient a day

2007 BMW 328i Feldmann Nissan Bloomington Minneapolis MN Used M1072A2

2007 BMW 328i Feldmann Nissan Bloomington Minneapolis MN Used M1072A2

35 EASY WAYS TO IMPROVE YOUR SHOES || SMART GIRLY HACKS

35 EASY WAYS TO IMPROVE YOUR SHOES || SMART GIRLY HACKS

34 Key Digital Marketing Terms Part (1/3)

34 Key Digital Marketing Terms Part (1/3)

Georgia - About Work The Dancefloor (Official Video)

Georgia - About Work The Dancefloor (Official Video)

Pokemon Diamond and Pearl Demo, But I BROKE It

Pokemon Diamond and Pearl Demo, But I BROKE It

What Is the Difference Between Mind and Intellect?

What Is the Difference Between Mind and Intellect?

55 Alternative Ways to Say "NO" in English | NO Synonyms

55 Alternative Ways to Say "NO" in English | NO Synonyms