Articles by Topic

Technology

June 29, 2025

Find An Object's Page Number Within A Django Paginated Queryset

Efficiently find object page numbers in Django paginated views using Window functions, RowNumber expressions, and optimized database queries.

June 25, 2025

How To Resize Images On Upload in Django

Resize uploaded images during Django form validation using Pillow to prevent large files from reaching your storage system.

June 16, 2025

How to Serve Favicons in Django from Cloud Storage

Discover how to proxy serve favicons in Django from cloud storage like AWS S3, DigitalOcean Spaces, and Google Cloud Storage Buckets to mitigate CORS issues related to external storage.

June 3, 2025

How To Add A robots.txt File In Django

A discussion on how to serve a robots.txt file in a couple of different ways from a Django application.

May 30, 2025

Django Signals For Updating And Deleting Images

Django signals that delete image files when a model image field is updated or the entire record is deleted.

May 28, 2025

Considerations for Django Model Field Choices

A discussion on how to appropriately handle Django model field choices so that migrations aren't produced unnecessarily.

April 8, 2025

Securely Update Kubernetes Secrets with Manual GitHub Workflows

A Step-by-Step Guide to Managing Environment Variables in DigitalOcean Kubernetes Using workflow_dispatch

August 11, 2024

Front-End Practice: Javascript Calculator

Weekend fun with Javascript, CSS & HTML building a functional calculator.

August 8, 2024

Support for Pre-Django 4.2 Storage Configuration Removed In Django 5.1

Support for the file/media and static file storage configurations has been removed forcing adoption of the new STORAGES dictionary in settings.py.

July 13, 2024

Add Form To Django Formset Dynamically With JavaScript

Use JavaScript to dynamically add forms to a Django Formset on the client side by copying an existing form, updating the necessary values and attributes, and appending the copied form to the formset.

June 25, 2024

Efficient URL Management In Django

A centralized approach to URL management in Django for frequently referenced URL patterns.

June 23, 2024

Default Avatars With User Initials

Simple default avatars displaying the logged-in user's initials for use as a fallback when a profile picture isn't set.

June 20, 2024

Simple Callout Boxes For Info, TLDR, And So On

Instructions and discussion on building simple, styled callout boxes to add context to article content.

June 17, 2024

Display Accounting Journal Entries with HTML, CSS, And Javascript

Here's an easy way to cleanly display an accounting journal entry as an HTML table with a little bit of style and javascript behavior.

June 9, 2024

How To Test A Domain Locally

This article explores how to test your Django application using a domain rather than "localhost." Additionally, we'll look at a DNS cacheing issue you're likely to encounter and what to do about it.

May 30, 2024

How To Authenticate Your Google Service Account In Python Using Environment Variables

Securely store your Google service account credentials with environment variables and use python to authenticate with Google services.

May 17, 2024

How to Handle Multiple Domains in Django with the Sites Framework

How to use the Django Sites framework in combination with custom middleware for supporting multiple domains pointing to discrete locations with a single Django application.

April 16, 2024

Considerations for Updating Time Zones in Django

Additional steps to consider when configuring time zones in your Django project for optimal user experience.

April 15, 2024

How to Use Time Zones with Django

A discussion on how to set up your Django project to handle timezones.

April 10, 2024

Content Components to Consider When Designing a Blog

What types of content structure to consider, how to break it apart and considerations on indexing content.

March 25, 2024

How Do You Embed Images in a Django Blog From a WYSIWYG Editor?

How to add images to you blog pages using a WYSIWYG editor widget in a blog built with Django.

March 18, 2024

Generative AI and the Authenticity Crisis

A speculation of the threat tools like generative AI pose to the human experience and our deliberate march towards redundancy.

January 27, 2024

Adding a Limited User to Dockerfile Upends My Kubernetes Deployment

Adding a limited user to Dockerfile without considering downstream affects causing unanticipated problems requiring debugging that could have been avoided.

January 24, 2024

Trivial Mistakes I Made With Docker Compose This Week

Wasting time chasing complex solutions for simple mistakes in Docker, Docker Compose, & Kubernetes.

November 9, 2023

Template Tests for Django TemplateView Requiring Staff Permissions

A mixin to be used with testing Django TemplateView class-based views that require staff privileges.