Python
AI
GenAI
Generative AI with Python: From API Calls to Production Patterns
LLM mental models, token arithmetic, prompt engineering, structured output, tool use,
embeddings, RAG, streaming, retries, prompt caching, and cost tracking — all the patterns
a Python developer needs to ship GenAI in production.
Apr 30, 2026
·
20 min read
·
Rizwan Mansuri
AI
Python
LLM
Django
AI Exposure by Occupation: Inside Karpathy's Job Market Visualizer
Karpathy's treemap scores 342 US occupations for AI exposure using an LLM pipeline.
Software developers hit 8–9/10. Here's what that means and how to build the scoring
pipeline yourself in Python and Django.
Apr 24, 2026
·
10 min read
·
Rizwan Mansuri
Django
Python
Crypto
Celery
Build a Crypto Portfolio Tracker with Django and the CoinGecko API
Live price updates over WebSocket, Celery Beat refreshing prices every five minutes,
price alerts that fire when a target is crossed, and a full DRF API — all on the free
CoinGecko tier with no API key required.
Feb 20, 2026
·
14 min read
·
Rizwan Mansuri
Django
Wagtail
Python
AI · RAG
RAG with Django: Chat Over Your Wagtail CMS Content
Build a retrieval-augmented generation chat API for Wagtail using pgvector, OpenAI
embeddings, and the Claude API — with streaming responses and auto-indexing on page publish.
Nov 12, 2025
·
15 min read
·
Rizwan Mansuri
Wagtail
Django
CMS
Wagtail vs Django CMS: Technical Comparison & Editor Experience
StreamField vs placeholders, Wagtail admin vs frontend editing toolbar, plugin systems,
multi-site, search, and headless. A hands-on breakdown of which CMS to pick and why.
Oct 15, 2025
·
16 min read
·
Rizwan Mansuri
Python
Django
IoT
MQTT
Automated Greenhouse Control with Python: MQTT Sensors, PID Climate Control, and a Django Dashboard
Sensors publish readings over MQTT, a Python PID controller drives vents and irrigation,
Django persists the time-series, and Django Channels streams live data to a real-time
dashboard. Full code for a self-hosted greenhouse automation system.
Aug 14, 2025
·
17 min read
·
Rizwan Mansuri
Django
Python
AI
Claude
How to Add an AI Chatbot to Any Django Site in a Weekend
Build a streaming Claude chatbot in two days — Django model, SSE endpoint, session history,
floating widget, rate limiting, and production checklist.
Jul 28, 2025
·
15 min read
·
Rizwan Mansuri
Python
Django
AI
Robotics
Robotic Crop Monitoring with Python: A Django Pipeline for Computer Vision Disease Detection
Raspberry Pi robot captures plant images in the field, POSTs them to a Django REST API,
Celery analyses each image with Claude Vision, and Django Channels pushes real-time
disease alerts to the farm dashboard.
Jun 12, 2025
·
16 min read
·
Rizwan Mansuri
Wagtail
Django
Elasticsearch
How to Set Up Wagtail with Elasticsearch
Complete guide: install the Python client, configure the backend, define search fields,
add autocomplete, boost fields for relevance, filter results, index StreamField content,
and do zero-downtime reindexing in production.
Mar 5, 2025
·
12 min read
·
Rizwan Mansuri
Django
Python
Celery
AI
Django REST API + Celery: Async AI Tasks Without Blocking Your Workers
Stop blocking Django workers on slow LLM calls. Build a 202 Accepted → Celery task → poll
pattern with an AITask model, exponential backoff polling, SSE streaming, and priority queues.
Oct 3, 2024
·
12 min read
·
Rizwan Mansuri
Data
India
Policy
Civil Rights
Muslims in India: Data & Visual Evidence of Marginalization
Official government data — Sachar Report, Census 2011, NCRB, Election Commission — shows
Muslims underrepresented in every institution and below the national average on most
development indicators. Interactive charts.
Nov 18, 2023
·
14 min read
·
Rizwan Mansuri
Django
Python
REST API
DRF
Django REST API Best Practices
Production-proven patterns for structuring DRF projects — serializers, authentication,
permissions, filtering, pagination, versioning, error handling, and testing.
Nov 7, 2023
·
10 min read
·
Rizwan Mansuri