Writing on AI and software

How we won Product of the Week on Product Hunt

A guide to launching on Product Hunt and winning Product of the Day and Product of the Week

Making our startup's homepage search statically fast - A simple way using static speed and Next.js โšก

Using Next.js's boringly named but easy mechanism to make our homepage search as fast as possible.

Email to Data (with an LLM)

Speeding up my taxes by converting .eml files to useful data with an LLM

Train an AI to generate text with Python ๐Ÿง 

We'll train a real GPT AI language model from scratch using Python on macOS, specifically designed to generate Shakespearean text, using the Tiny Shakespeare dataset.

Deploy Django Ninja to production in 9 minutes ๐Ÿฅท๐Ÿ›ฐ๏ธ

Very simple. Django or Django Ninja to production using Render

Django Ninja + Next.js - 2 powerful frameworks ๐Ÿฅทโš›๏ธ

Django Ninja for a fast, typed API backend + Next.js (with App Router) for frontend

Create a simple Google search bar component with React ๐Ÿ•ต๐Ÿปโ€

Simple search with sample data and debouncing

Use React with Django Ninja (including Auth) in 15 mins โšก๏ธ

We'll create an app from scratch with a React.js frontend (including persistent user authentication) and Django Ninja

Want to ship faster? Spend money ๐Ÿ’ฐ

The simplest hack to ship your products faster -> Don't be cheap

React + Django + Ninja (Full-stack in 15 mins) โš›๏ธ๐Ÿฅท

React, Django, and Django Ninja (including CORS setup and Typescript).

Use Vue with Django (including Auth) in 15 mins ๐Ÿ’

We'll create an app from scratch with a Vue.js frontend (including persistent user authentication) with Django in 10 minutes.

How to use React with Django (in 10 mins) โš›๏ธ

The simplest way to set up a React.js frontend and a Django REST API backend

The simplest way to add polling to Django with HTMX ๐Ÿ—ณ๏ธ

We'll build a dashboard that updates every few seconds with HTMX

Add inline AI suggestions to your Django app ๐Ÿ—ฏ

Use a fast LLM, HTMX, and Photon Designer to recommend actions to the user.

Stream your voice clone ๐ŸŽผ

We'll turn your voice into an infinitely-scalable instrument with Django

The simplest way to add lottie animations to your Django app ๐ŸŒ€

Show competence with smooth animations in your app.

Add Stripe subscriptions to Django in 7 minutes ๐Ÿ’ต

We'll add the ability for users to pay subscriptions in Django extremely quickly, including local webhook testing.

Build a Connect Four game with HTMX and Django in 8 minutes ๐ŸŸก๐Ÿ”ด

Use HTMX with Django for fast and neat web apps. Keep state changes server-side.

Stream AI chats using Django in 5 minutes (OpenAI and Anthropic) ๐Ÿ’ง

Simply use server-sent events with Django (no extra packages needed) to stream LLM completions. Avoid waiting for the full completion.

Use Postgres as a simple task queue for Django ๐Ÿ˜

Simply run background tasks using Postgres and python. This has some big advantages.

Add comment threads to Django in 9 mins ๐Ÿงต

A simple way to let people leave comments in your Django app

7 simple examples using Django GeneratedField โšก๏ธ

Do calculations with your database in a neat and extremely fast way

Simply add (and export) data from your Django database with YAML (3 mins) ๐Ÿงฎ

Speed up your time to useful content. A simple guide to adding and exporting data using YAML and Django's management commands

Create a quiz app with HTMX and Django in 8 mins โ˜‘๏ธ

Build multi-stage forms with HTMX and Django very quickly.

Simple Django mistake - Not debugging using network responses ๐Ÿ•ธ๏ธ

Avoid wasting a load of time when debugging Django apps, particularly with APIs (like AWS)

The simplest way to add a Django worker (Using AWS Chalice) ๐Ÿท

Add an AWS lambda function, with async invocation for background tasks, to development and production (plus GitHub Actions deployment)

Django app killer - Query in for-loop ๐ŸŒช๏ธ

Avoid killing your Django app's performance by putting a database query in a for-loop

The simplest way to add Tailwind CSS to Django ๐Ÿ’จ

How to use Tailwind CSS with Django

How to add python serverless functions as Django background workers ๐Ÿ—ก

I spent 14 hours adding async serverless functions. Here's the guide I was missing using DigitalOcean functions

Build a Django AI colorization app ๐ŸŽจ๐Ÿฆพ

Use Django and webhooks to build an app that uses AI to color black and white photos.

The simplest way to add magic link sign-in using Django โœ‰๏ธ

An easy guide to add email sign-in (and verification) to Django using Gmail and others

The simplest way to add Google sign-in to your Django app โœ๏ธ

Avoid adding big packages (like Django-allauth or Django-social-auth). It's easier without them.

Use English to query your Django data ๐Ÿด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ

Let non-technical users use English to get answers from your Django data (with OpenAI's Assistant API)

Deploy an instant messaging app with Django ๐Ÿš€

How to deploy an app with real-time events in the easiest way (Part 2 of building an instant messaging app with Django ๐ŸŒฎ)

The simplest way to build an instant messaging app with Django ๐ŸŒฎ

How to create an app with real-time events in the easiest way (with server-sent database events and no Redis)

Add Notion as your Django database in 8 minutes ๐Ÿ•ฏ๏ธ

Adding Notion as your Django database is simple, free, and makes viewing and changing data very easy (you use Notion).

Write good tests (with FactoryBoy and Faker) in 6 Minutes ๐Ÿฝ๏ธ๐Ÿ‘จโ€๐Ÿณ

Start writing good Django unit tests (quickly and clearly)

The simplest way to add server sent events to Django ๐Ÿบ

Add server sent events to your Django app with Daphne (and minimal code).

Add infinite scroll with Django and HTMX in 60 seconds โ™พ๏ธ

Speed your initial load - get content only when the user wants it.

How to upload images easily with Django (and save the links to your database) ๐ŸŒค๏ธ

Simply upload images to the cloud and store the links (using Django, Cloudinary, and Alpine.js)

Build a simple file uploader with Django (and Alpine.js) ๐Ÿ”๏ธ๐ŸŒ…

Frictionless uploading with a tiny Alpine.js component and S3.

Snapshot any site with Django in 3 minutes ๐Ÿ–ผ๏ธ

Build a Django app to snapshot any URL using simple headless browsing

Create a open graph social image generator with Django ๐ŸŒ

Help people share your content - create Open Graph social images for any url automatically

How to add Google sheets as your Django database in 4 minutes ๐Ÿ“Š

An easy to add database (and free)

3 steps to upload files properly with Django (and HTMX) ๐Ÿ“

Most tutorials give bad advice about uploading files. Here's how to avoid blocking your server.

How to store your users' API keys securely in Django ๐Ÿ”‘

Encrypt your users' keys to increase security

How to add serverless functions with Django in 6 mins (with HTMX and AWS Lambda) ๐Ÿง 

Add serverless functions. Banish background worker mess.

Add instant database search with Django and HTMX ๐Ÿ•ต๏ธ

Search server-side with speed.

How to create ChatGPT with Django and HTMX in 4 minutes ๐Ÿฆพ

Add AI to your web apps, simply and quickly (including GPT4)

How to create a Django form (using HTMX) in 90 seconds ๐ŸŽ

Minimise javascript. Maximise building speed with Django and HTMX.

How to add a javascript library to your Django HTML template ๐Ÿ‘”

Add a JavaScript library to your Django HTML template. Create more valuable Django apps as a result.

How to create a Django form in 2mins using Alpine.js ๐Ÿ”๏ธ

Create an async Django form simply and neatly with Alpine.js. Boost speed, enhance functionality.

Automatically register all Django models in Django admin

Register all of your Django models in the admin automatically. Avoid manually adding each new one.

Django Viewset Permissions - A Guide to Setting Permissions Per ViewSet Method

We show how to set permissions using Django ViewSets (a very fast and elegant way to build a Django REST API)

Build web apps 5-10x faster by combining Webflow and Django

A basic script and guide for exporting Webflow to Django