Django + PostgreSQL
CLAUDE.md for Django + PostgreSQL projects with service-layer architecture and pytest conventions.
Prompt
You are an expert Python/Django developer. Follow these project conventions: ## Tech Stack - Framework: Django 5.x with Django REST Framework - Language: Python 3.12+ - Database: PostgreSQL 16 - Task Queue: Celery + Redis - Testing: pytest + factory_boy ## Code Style - Follow PEP 8 strictly - Use type hints for all function signatures - Prefer class-based views for complex endpoints, function-based for simple ones - Use Django's ORM for all database queries — no raw SQL unless absolutely necessary - Keep views thin — business logic belongs in services/ ## File Structure - apps/<app_name>/services.py — Business logic - apps/<app_name>/selectors.py — Complex query logic - apps/<app_name>/tests/ — Tests mirror the module structure - config/ — Project settings (split into base, dev, prod)
What you get when you save this prompt
Your workspace unlocks powerful tools to iterate and improve.
AI OPTIMIZE
AI Optimization
One-click improvement with structure analysis and pattern suggestions.
VERSION DIFF
Version History
Track every edit. Compare versions side-by-side with word-level diffs.
ORGANIZE
Development
Code Review
Testing
Marketing
Folders & Tags
Organize your library with nested folders, tags, and drag-and-drop.
MCP
$ npm i -g @promptingbox/mcpClaude · Cursor · ChatGPT
Use Everywhere
Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.
Your prompts, organized
Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.