drf
Django REST Framework scaffolding best practices, and gotchas.
Setup & Installation
Install command
clawhub install pradeepcep/drfIf the CLI is not installed:
Install command
npx clawhub@latest install pradeepcep/drfOr install with OpenClaw CLI:
Install command
openclaw skills install pradeepcep/drfor paste the repo link into your assistant's chat
Install command
https://github.com/openclaw/skills/tree/main/skills/pradeepcep/drfWhat This Skill Does
Covers building REST APIs with Django REST Framework, including project setup, serializers, viewsets, routing, authentication, pagination, filtering, and query optimization. Includes guidance on common pitfalls like N+1 queries, silent permission bugs, and misplaced business logic.
Collects opinionated defaults and common pitfalls in one place so engineers avoid silent security bugs and performance problems that DRF does not surface on its own.
When to Use It
- Scaffolding a new Django REST API project from scratch
- Adding token or JWT authentication to Django endpoints
- Fixing N+1 query problems in DRF list views
- Writing serializers with separate read and write representations
- Setting up rate limiting for anonymous and authenticated users
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Scaffolding a new Django REST API project from scratch
- 1Scaffolding a new Django REST API project from scratch
- 2Adding token or JWT authentication to Django endpoints
- 3Fixing N+1 query problems in DRF list views
- 4Writing serializers with separate read and write representations
- 5Setting up rate limiting for anonymous and authenticated users
Django REST Framework scaffolding best practices, and gotchas.
Security Audits
These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.