Learn how to prevent cumulative layout shift (CLS) when loading images by reserving space with aspect ratios and proper sizing
A guide on how to use Fuse.js to implement client side search for a static site
A code snippet for an input that updates the bound value with a delay. Can be used for search inputs
A utility function to read and parse uploaded CSV files in Django forms with automatic delimiter detection
A guide to setting up PostgREST with Docker Compose, including database configuration, role management, and Swagger UI integration.
Common questions and answers about Django development, covering views, project structure, hosting options, and database choices.
A minimal Django project template in a single file, useful for testing and prototyping
A collection of curated links and resources about web development, industry insights, and developer motivation.
A guide on setting up a Docker container with SSH access for testing Ansible deployment scripts, including configuration steps and common troubleshooting.
How to force Django to create default model permissions during migrations using emit_post_migrate_signal
A collection of practical programming tips and development shortcuts to improve your coding workflow.
A guide to setting up Litestream with Docker Compose for continuous SQLite database replication to S3, including configuration files and startup scripts.
Learn how to create a custom logging filter in Django to exclude specific 404 error messages from your logs based on URL patterns.
A guide on configuring Cloudfront CDN to serve media files from an S3 bucket in a Django application, including AWS console setup and Django configuration.
A guide on configuring Django to store media files in S3, including local development setup with Localstack and Terraform.
Learn how to dynamically define environment variables in a Makefile using $(eval) when the variable value depends on files that don't exist yet during Makefile parsing.
Implementing keyword search on documents using scikit-learn's binary CountVectorizer for text analysis
A practical exploration of implementing Server Sent Events in Django, including challenges with async servers, event stream formatting, and connection handling.
A tutorial on implementing drag-and-drop functionality in Django using HTMX and Sortable.js, featuring a simple single-file application example.
A guide on implementing interactive form management in Django using Alpine.js, allowing users to dynamically add and remove forms while maintaining proper formset functionality.
A guide on implementing floating labels for select fields using Tailwind CSS, including HTML structure and CSS styling for proper label positioning.
Learn how to implement loading spinners for HTMX requests using Tailwind CSS, with two different approaches for better user feedback during form submissions.
A tutorial on creating a custom select dropdown with search functionality using Alpine.js, including step-by-step implementation and complete code example.
A guide to implementing floating form labels using Tailwind CSS's peer selector, including HTML structure and CSS styling with the tailwind forms plugin.
A guide to integrating Tailwind CSS into Django projects using django-tailwind, including development setup with hot reload and process management using PM2.
A guide to setting up and configuring remote debugging in VSCode for Python/Django applications, including Docker support.
A guide to setting up LocalStack for local S3 development, including serverless configuration and Django integration
Learn how to create resilient forms that persist user input in localStorage using Alpine.js and Django
A guide to creating a multi-step form wizard using Django and HTMX, with form data persistence between steps using hidden inputs and a preview step before final submission.
An overview of HTTPS, TLS, and SSL certificates, covering how they work, self-signed certificates, certificate authorities, and different approaches to implementing secure connections.
A comprehensive guide to Gunicorn, the Python WSGI HTTP server, covering its basics, configuration, and deployment best practices.
A comprehensive guide on using SQLite in production with Django, covering performance optimizations, write-ahead logging, and practical configuration steps.
A comprehensive guide to setting up a Django project from scratch, covering project structure, environment configuration, and essential development tools.