Django & pip
Prerequisites
Section titled “Prerequisites”- Python 3.10+ installed
- An existing Django project (or create one with
django-admin startproject myproject) - Claudette installed and running
Configuration
Section titled “Configuration”Create a .claudette.json in your project root:
{ "scripts": { "setup": "python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt && python manage.py migrate" }, "instructions": "This is a Django project. Use Python 3.12+ with type hints. Run tests with pytest."}This setup script will:
- Create a Python virtual environment in
.venv - Activate it
- Install dependencies from
requirements.txt - Run database migrations
Add to Claudette
Section titled “Add to Claudette”- Open Claudette and click + Add Repo
- Select your Django project directory
- Create a new workspace — the setup script runs automatically
Example Prompts
Section titled “Example Prompts”Try these to get started:
“Add a REST API endpoint at
/api/posts/that lists all blog posts with pagination”
“Create a custom management command that seeds the database with test data”
“Add user authentication with login, logout, and registration views”
- If you use Poetry instead of pip, change the setup to:
poetry install && poetry run python manage.py migrate - Add your
.envfile to the repo root so it’s available in all worktrees, or symlink it:ln -s "$HOME/.env.myproject" .env