SitePoint
  • Premium
  • Library
  • Community
  • Jobs
  • Blog
LoginStart Free Trial

The home for developers

Track your course progress, manage projects, and find your dream job - all in one place.

Start Your Free Trial

7 Day Free Trial. Cancel Anytime.

SitePoint Premium

  • Access to 700+ courses
  • Publish articles on SitePoint
  • Daily curated jobs
  • Learning Paths
  • Discounts to dev tools
  • Library/
  • Text courses/
  • Django Channels for Real-time Updates
Django Channels for Real-time Updates

Django Channels for Real-time Updates


Course details

0∙0 Ratings0 reviews

Published
December 2019
Publisher
SitePoint
Chapters
1

About the course

Django’s views system provides a perfectly good way to run a website. However, it’s sometimes useful to have real-time updates to data, without the user having to navigate around or refresh a page—for example, if you’ve got a lot of fast-changing content.

The best way to handle this sort of dynamic, real-time data is with Django Channels. Channels adds asynchronous events to Django. When something changes on the server, you can notify the user that that thing changed without waiting for the user to manually check. This has the potential to make Django event-driven—to have things happen in the user’s browser in direct response to something changing. This is great if you want to show a real-time set of updates—new posts, or live chat, or changing vote totals, or activity by other users.

In this tutoruial, we’ll look at a very simple example—Django’s tutorial polls app—but altered to use Channels so that the results for polls are updated dynamically in real time as the user watches.

Author

Stuart Langridge

Stuart Langridge

Stuart is a consultant CTO, software architect, and developer to startups and small firms on strategy, custom development, and how to best work with the dev team. Code and writings are to be found at kryogenix.org and social networks; Stuart himself is mostly to be found playing D&D or looking for the best vodka Collins in town.

Course Outline

Chapter 1: Django Channels for Real-time Updates

Reviews

0 total

0
0
0
0
0

Course details

0∙0 Ratings0 reviews

Published
December 2019
Publisher
SitePoint
Chapters
1

SitePoint

Stuff we do

  • Premium
  • Newsletters
  • Learning paths
  • Library
  • Forums

Contact

  • Contact us
  • FAQ
  • Publish your book
  • Write an article
  • Advertise

About

  • Our Story
  • Corporate Memberships
  • Start free trial
  • Login

Connect

  • RSS
  • Facebook
  • Twitter (X)
  • Instagram

Subscribe to our newsletter

Get the freshest news and resources for developers, designers and digital creators in your inbox each week

© 2000 – 2025 SitePoint Pty. Ltd.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Terms of usePrivacy policy