A detailed review for using Django, Channels, and HTMX to create dynamic and interactive web sites

Oct 16 1:30 PM PDT :calendar: to 5:00 pm
Audience level: All

About This Tutorial

The tutorial will cover an overview of the architecture, along with a line-by-line review of all the components involved in the system.

This review includes:

Django:

  • Authentication
  • Models
  • View
  • Template
  • HTMX initialization

Channels:

  • Consumer
    • Key methods (connect, disconnect, receive)
    • incoming messages
      • “dispatch” method
    • Library: django-channels-presence
    • Channel layer
    • async vs sync

Workers:

  • Channel layer
  • async vs sync
  • message format
    • “dispatch” method

Redis:

  • Channels
    • Channel names
    • Read / Write
    • Group send

HTMX:

  • Basic HTMX
  • The ws extension
  • The transformResponse function

nginx:

  • Segregating HTTP from websocket connections
  • Handling static files

uwsgi:

  • Running Django application

daphne:

  • Running Channels consumers
  • Running Workers

Bringing it all together:

  • Running it natively
  • Building docker containers

Presenters

    Photo of Ken Whitesell

    Ken Whitesell

    Ken is a software developer with more than 40 years experience across a multitude of platforms and languages. He is currently employed within the Digital Services group in WSP USA working on technology associated with Connected and Autonomous Vehicles. When he’s not working, you can generally find him hanging around the Django Forum trying to answer questions and provide assistance. Beyond that, you will most likely find him at a table playing board games.