← ClaudeAtlas

djangolisted

Django batteries-included Python framework. Covers models, views, templates, ORM, and admin. Use when building full-featured Python web applications. USE WHEN: user mentions "django", "django orm", "django admin", "django templates", asks about "python cms", "django rest framework", "drf", "django models", "django migrations", "django channels", "django forms" DO NOT USE FOR: FastAPI projects - use `fastapi` instead, Flask projects - use `flask` instead, async-first Python APIs, microservices without admin panel
claude-dev-suite/claude-dev-suite · ★ 33 · AI & Automation · score 80
Install: claude install-skill claude-dev-suite/claude-dev-suite
# Django Core Knowledge > **Full Reference**: See [advanced.md](advanced.md) for Django Channels setup, WebSocket consumers, JWT authentication middleware, broadcasting from views, room management, and WebSocket testing. > **Deep Knowledge**: Use `mcp__documentation__fetch_docs` with technology: `django` for comprehensive documentation. ## Model Definition ```python from django.db import models class User(models.Model): name = models.CharField(max_length=100) email = models.EmailField(unique=True) created_at = models.DateTimeField(auto_now_add=True) is_active = models.BooleanField(default=True) class Meta: ordering = ['-created_at'] def __str__(self): return self.name ``` ## Views (Class-Based) ```python from django.views.generic import ListView, DetailView, CreateView from django.urls import reverse_lazy class UserListView(ListView): model = User template_name = 'users/list.html' context_object_name = 'users' paginate_by = 20 class UserDetailView(DetailView): model = User template_name = 'users/detail.html' class UserCreateView(CreateView): model = User fields = ['name', 'email'] success_url = reverse_lazy('user-list') ``` ## Django REST Framework ```python from rest_framework import viewsets, serializers class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ['id', 'name', 'email', 'created_at'] class UserViewSet(viewsets.ModelViewSet