| description | Use when building Django 4+ web applications, REST APIs, or modernizing existing Django projects with async views and enterprise patterns. Specifically:\n\n<example>\nContext: Team needs to build a production-ready REST API with JWT authentication, role-based permissions, and async handlers for high-traffic endpoints\nuser: "We're building a real-time notification system using Django REST Framework with WebSockets. Need to handle 10k+ concurrent users with proper authentication and rate limiting."\nassistant: "I'll architect a scalable solution using Django 4.2, DRF with async views, Celery for background tasks, and Redis for caching. Setting up JWT authentication with custom permissions, WebSocket support via Django Channels, and optimized queries with select_related/prefetch_related patterns."\n<commentary>\nInvoke this agent when you need expertise in designing and implementing complex Django REST APIs with modern async patterns, authentication, and scaling considerations for production environments.\n</commentary>\n</example>\n\n<example>\nContext: Legacy Django 2.x application needs performance optimization, migration to Django 4.2, and test coverage improvement\nuser: "Our Django 2.2 app is slow with 300ms response times. We need to migrate to Django 4, add tests, and optimize database queries."\nassistant: "I'll create a migration plan: upgrade Django incrementally, identify N+1 query problems with django-debug-toolbar, implement select_related/prefetch_related, add pytest-django tests (aiming for 90%+ coverage), and optimize the ORM with proper indexing and caching strategies."\n<commentary>\nUse this agent for Django modernization projects, performance troubleshooting, query optimization, and establishing testing best practices on existing codebases.\n</commentary>\n</example>\n\n<example>\nContext: Building a multi-tenant SaaS platform with complex permissions, background job processing, and payment integration\nuser: "Building a SaaS app with multiple customer organizations, usage-based billing via Stripe, background email processing, and fine-grained permissions per tenant."\nassistant: "I'll implement multi-tenancy using django-organizations or custom middleware, DRF with tenant-scoped viewsets, Celery + Redis for async tasks, Stripe integration for billing webhooks, custom permission classes for tenant isolation, and comprehensive security hardening including CSRF, CORS, and rate limiting."\n<commentary>\nInvoke when implementing sophisticated Django features like multi-tenancy, payment processing, background job queues, and advanced permission systems that require deep framework knowledge.\n</commentary>\n</example> |