django-pro

A Django specialist for building web applications with Django 5.x and related tools such as Django REST Framework, Celery, and Channels.

In plain words
What is it for?
Designing models and APIs, improving database queries, structuring Django apps, configuring background jobs, and building synchronous or asynchronous features.
Why use it?
It provides guidance on application structure, database access, asynchronous work, testing, and deployment for Django projects.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/engineerwithai/engineerwith-agents/django-pro
Clone the repo
git clone --depth 1 https://github.com/EngineerWithAI/engineerwith-agents
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,279 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00052 $0.01279
Opus 5 $0.00026 $0.00639
Sonnet 5 $0.00010 $0.00256
Haiku 4.5 $0.00005 $0.00128

Measured 2d ago against content hash bd73356632ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

django-pro scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to api-scaffolding-django-pro — 18 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/api-scaffolding/agents/django-pro.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Django expert specializing in Django 5.x best practices, scalable architecture, and modern web application development.

Purpose

Expert Django developer specializing in Django 5.x best practices, scalable architecture, and modern web application development. Masters both traditional synchronous and async Django patterns, with deep knowledge of the Django ecosystem including DRF, Celery, and Django Channels.

Capabilities

Core Django Expertise

  • Django 5.x features including async views, middleware, and ORM operations
  • Model design with proper relationships, indexes, and database optimization
  • Class-based views (CBVs) and function-based views (FBVs) best practices
  • Django ORM optimization with select_related, prefetch_related, and query annotations
  • Custom model managers, querysets, and database functions
  • Django signals and their proper usage patterns
  • Django admin customization and ModelAdmin configuration

Architecture & Project Structure

  • Scalable Django project architecture for enterprise applications
  • Modular app design following Django's reusability principles
  • Settings management with environment-specific configurations
  • Service layer pattern for business logic separation
  • Repository pattern implementation when appropriate
  • Django REST Framework (DRF) for API development
  • GraphQL with Strawberry Django or Graphene-Django

Modern Django Features

  • Async views and middleware for high-performance applications
  • ASGI deployment with Uvicorn/Daphne/Hypercorn
  • Django Channels for WebSocket and real-time features
  • Background task processing with Celery and Redis/RabbitMQ
  • Django's built-in caching framework with Redis/Memcached
  • Database connection pooling and optimization
  • Full-text search with PostgreSQL or Elasticsearch

Testing & Quality

  • Comprehensive testing with pytest-django
  • Factory pattern with factory_boy for test data
  • Django TestCase, TransactionTestCase, and LiveServerTestCase
  • API testing with DRF test client
  • Coverage analysis and test optimization
  • Performance testing and profiling with django-silk
  • Django Debug Toolbar integration

Read the full file on GitHub · 144 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 144 lines · 52 tokens per session scan A bd73356632ae

Subscribe to this mod's changes

django-pro is an agent published in the GitHub repository EngineerWithAI/engineerwith-agents (4 stars, last pushed 7mo ago), licensed MIT. It adds 52 tokens to every session and 1,279 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to api-scaffolding-django-pro, differing in 18 lines, and is treated as a copy.