Using the Django messages framework with HTMX's OOB swaps

As in my previous article, we'll see how to integrate the Django messages framework with HTMX. This time, however, we won't use the HX-Trigger header but out-of-band swaps, allowing us to shrink the JavaScript code.

READ MORE

Using the Django messages framework with HTMX

This article explains how to create a middleware that extracts the messages from Django's messages framework to make them available to HTMX.

READ MORE

Toasts with Django+HTMX

This is a follow-up to my previous article about modal forms with Django anbd HTMX. We'll see how to show a toast to notify the user.

READ MORE

Modal forms with Django+HTMX

In this article we'll use Django and HTML how to implement a modal dialog containing a form with server side validation.

READ MORE

GitHub Actions: How to run SSH commands (without third-party actions)

We'll see how to copy files and execute commands on a remote host from a GitHub Action workflow. Use this technique to deploy your app through SSH.

READ MORE

Watch me on Maker Mind Meld Summit

I'll be speaking at the Maker Mind Meld Summit, an online conference for makers and electronic hobbyists.

READ MORE

New blog: C++ for Arduino

Since the publication of my book “Mastering ArduinoJson,” I received a lot of positive feedback. One thing that surprised me, however, was that many readers loved the second chapter, “The Missing C++ Course.” This chapter is a quick refresher on C++; it explains some of the fundamental notions, like stack and heap, but also gives tips for your everyday programming. …

READ MORE

[Arduino] How to debug any program with tracing

Have you ever been faced with an Arduino board that crashes for no apparent reason? Have you ever decode an ESP8266 (ESP32, etc.) exception stack trace and ended with more questions than answers? If so, let me talk to you about a bulletproof technique: the good-old “tracing” technique. …

READ MORE