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.

skills.sh installs
170
GitHub stars
44
last updated
Aug 21, 2026

Install

$ npx -y skills add personamanagmentlayer/pcl --skill django-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

Django Expert

Expert guidance for Django - high-level Python web framework for building secure, scalable web applications with batteries included.

Core Concepts

Django Architecture

  • MVT (Model-View-Template) pattern
  • ORM (Object-Relational Mapping)
  • Admin interface
  • Authentication system
  • URL routing
  • Template engine
  • Forms and validation

Key Components

  • Models (database tables)
  • Views (business logic)
  • Templates (presentation)
  • URLs (routing)
  • Forms (user input)
  • Middleware (request/response processing)

Project Setup

# 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

Models

# 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

Details

Repository
github.com/personamanagmentlayer/pcl
Categories
Backend & APIs, Security, Python, Databases
First seen
Jun 3, 2026

More from personamanagmentlayer/pcl

All 99
1incept5 avatareve-app-cliincept5/eve-skillpacksBuild agent-friendly CLIs for Eve-compatible apps. Wrap REST APIs with domain commands, auto-auth, structured errors, and --json output. Agents use CLIs instead162skills.sh installs
2base avatarregistering-agent-base-devbase/skillsInvoke this skill when a user is building or running any automated transaction sender on Base (trading bot, arbitrage bot, sniper bot, yield farmer, AI agent, o161skills.sh installs
3cinience avataralicloud-ai-chatbot-testcinience/alicloud-skillsSmoke test for alicloud-ai-chatbot. Validate minimal authentication, API reachability, and one read-only query path.161skills.sh installs
4cinience avataralicloud-ai-content-aicontent-testcinience/alicloud-skillsSmoke test for alicloud-ai-content-aicontent. Validate minimal authentication, API reachability, and one read-only query path.160skills.sh installs
5cinience avataralicloud-security-content-moderation-green-testcinience/alicloud-skillsSmoke test for alicloud-security-content-moderation-green. Validate minimal authentication, API reachability, and one read-only query path.160skills.sh installs
6existential-birds avatardeepagents-architectureexistential-birds/beagleGuides architectural decisions for Deep Agents applications. Use when deciding between Deep Agents vs alternatives, choosing backend strategies, designing subag160skills.sh installs