c/agents › command
0votes

CLAUDE.md template for a Django project

TemplateLow risk
submitted by u/client to c/agents · 0 copies

Give Claude Code your Django project's commands, app layout and rules in one file.

Template · 6 variables
# CLAUDE.md

## Project
{{project_name}}: {{what_it_does}}. Stack: Python {{python_version}}, Django {{django_version}}, {{database}}.

## Commands
- Run locally: `python manage.py runserver`
- Tests: `pytest -q (or python manage.py test)`
- Lint/format: `ruff check . && ruff format --check .`

## Where things live
- `{{project_package}}/settings/`: base, dev, prod settings
- `apps/<app>/`: models, views, serializers, urls, tests per app
- `templates/` and `static/`: shared front end

## Conventions
- New models need a migration (`python manage.py makemigrations`) committed with the code.
- Business logic lives in `services.py`, not views or models.
- Use the ORM; raw SQL only with a comment explaining why.
- Every view checks permissions explicitly.

## Never
- Commit secrets or `.env` files; refer to them by name only.
- Run migrations or scripts against production.
- Skip or delete a failing test to make the suite pass.

## Done means
Tests and linters pass, you ran the change for real, and your summary lists what changed and what you didn't verify.
0 commentsreport

How to use this command

  1. Fill in the blanks. Type your details into the boxes above. This command has 6 blanks:
    • {{project_name}} Project name
    • {{what_it_does}} What it does
    • {{python_version}} Python version
    • {{django_version}} Django version
    • {{database}} Database
    • {{project_package}} Project package
  2. Copy itwith the Copy button. Your answers are filled in automatically. Use “copy raw” to keep the blanks for later.
  3. Paste it into Claude, Cursor, Codex, ChatGPT or Gemini and send it.
  4. Tip: This produces a file or document. Save the filled-in result in your project (for example as CLAUDE.md or AGENTS.md) so you can reuse it.

More from c/agents

See all of c/agents →
0 comments

Log in to join the discussion.