Django's built-in ManyToManyField can only point at one model. Learn how to build a generic many-to-many relation in Django 5.x with the contenttypes ...
MicroPyramid Blog
Articles that strengthen our current focus on AI systems, modernization, and product engineering, alongside the broader engineering archive.
Older posts still cover Django, Python, AWS, Salesforce, React, Flutter, and Svelte, but the clearest current signal is around the three service lanes below.
AI Systems
RAG, knowledge workflows, search, and practical AI system design.
Explore service pageModernization
Legacy cleanup, migration planning, Django rescue, and safer system change.
Explore service pageProduct Engineering
Full-stack delivery, dashboards, portals, MVPs, and AI-ready product work.
Explore service pageA practical, Django 5.x guide to GenericForeignKey and the contenttypes framework: how ContentType, content_type, object_id and content_object fit tog...
A practical, up-to-date guide to Django's messages framework in Django 5.x β the flash messages that survive a redirect. Learn the API, message levels...
A 2026, Django 5.x deep dive into model and inline formsets: when to use each, the mandatory management form, factory options, saving with commit=Fals...
A practical, up-to-date guide to Django's template engine (Django 5.x): how the TEMPLATES setting works, how templates load and render, the DTL essent...
A Django 5.x guide to model Managers, custom QuerySets, and properties: the objects interface, get_queryset() overrides, Manager.from_queryset() for c...
A current, Django 5.x guide to adding CAPTCHA and bot protection to your forms. Install django-recaptcha for reCAPTCHA v2 and v3, compare Cloudflare T...
A practical 2026 guide to drag-and-drop multiple file uploads with Dropzone.js v6+: install via npm or CDN, configure the programmatic API (maxFiles, ...
Copy text to the clipboard in JavaScript using the async Clipboard API: navigator.clipboard.writeText(). A current 2026 guide covering secure contexts...
Automate your Django test suite in a self-hosted GitLab CI pipeline with Docker. A modern .gitlab-ci.yml with a postgres:16 service, dependency cachin...
A practical 2026 guide to deploying Django with uWSGI and Nginx using an idempotent Ansible playbook β roles, Jinja2 templates, systemd handlers, ansi...
A 2026 guide to setting up Sentry for error and performance monitoring: what Sentry is, its core concepts (DSN, issues, releases, sampling), SaaS vs s...