filmov
tv
Django Realtime Chat App Tutorial - Simple Python Django Tutorial With Channels And Redis
Показать описание
Learn how to build a simple realtime chat application using Django, Python, Web sockets, Channels and Redis.
To do list for this Django tutorial
-Set up the environment and install everything
-Create the front page
-Create the room page
-Connecting to a room
-Sending messages to each other
-Storing messages in a database
Messages are stored in a database, so it's even possible to see old messages.
To connect with the backend, I use Web Sockets (Vanilla JavaScript). To add async support to Django, I use Channels.
Redis is used as a in-memory cache for Channels.
The chat we build in this Django tutorial is very basic, and it's mostly to demonstrate how it can be done.
The code we put together here, can be used as a bare for something much bigger like a Slack clone and similar. But that requires a lot of work of course.
---
Important links
---
#codewithstein #django #djangochat #channels #redis #learndjango #javascript #python #websockets
To do list for this Django tutorial
-Set up the environment and install everything
-Create the front page
-Create the room page
-Connecting to a room
-Sending messages to each other
-Storing messages in a database
Messages are stored in a database, so it's even possible to see old messages.
To connect with the backend, I use Web Sockets (Vanilla JavaScript). To add async support to Django, I use Channels.
Redis is used as a in-memory cache for Channels.
The chat we build in this Django tutorial is very basic, and it's mostly to demonstrate how it can be done.
The code we put together here, can be used as a bare for something much bigger like a Slack clone and similar. But that requires a lot of work of course.
---
Important links
---
#codewithstein #django #djangochat #channels #redis #learndjango #javascript #python #websockets
Комментарии