django-dev-ninja
Installation
SKILL.md
Django Ninja API Development
Opinionated Django Ninja patterns with single-endpoint-per-file organization.
Core Principles
- One endpoint = one file - Each endpoint lives in its own file
- Logical grouping - Endpoints grouped in subpackages by domain
- Router per group - Each group has its own router
- Schemas in separate package - Pydantic models in
schemas/ - Services for logic - Business logic in services, not endpoints
API Structure
myapp/
├── api/
│ ├── __init__.py # Main NinjaAPI instance
│ ├── users/
Related skills