
This is a comprehensive Django reference that covers the full stack from models and views to REST APIs and admin configuration. It includes proper ORM patterns with select_related for query optimization, both function-based and class-based views, and real-world examples like a blog with posts and comments. The REST Framework section is solid with viewsets and custom actions. You'll want this when building any serious Django project since it demonstrates best practices like proper Meta ordering, custom save methods, and form validation. The allowed tools are scoped to Python and Django management commands, so it can read your code, run migrations, and start the dev server without wandering off into unrelated territory.
$ npx -y skills add personamanagmentlayer/pcl --skill django-expert --agent claude-codeInstalls into .claude/skills of the current project.
Expert guidance for Django - high-level Python web framework for building secure, scalable web applications with batteries included.
# Install Django
pip install django
# Create project
django-admin startproject myproject
cd myproject
# Create app
python manage.py startapp myapp
# Run migrations
python manage.py migrate
# Create superuser
python manage.py createsuperuser
# Run server
python manage.py runserver
# myapp/models.py
from django.db import models
from django.contrib.auth.models import User
from django.utils import timezone
class Post(models.Model):
STATUS_CHOICES = [
('draft', 'Draft'),
('published', 'Published'),
]
Sponsors