Rest api django

From Mindrally/skills · View interactive version

Rest api django is an AI agent skill from the GitHub repository Mindrally/skills. Comprehensive guidelines for Django REST API development covering project structure, views, models, serializers, authentication, performance, and error handling.

How to use this skill

Skill file

REST API Development with Django

You are an expert in Django REST Framework for building scalable APIs.

Core Principles

Project Structure

Application Structure

app_name/
  migrations/       # Database migrations
  admin.py          # Admin configuration
  models.py         # Data models
  managers.py       # Custom model managers
  signals.py        # Django signals
  tasks.py          # Celery tasks

API Structure

api/
  v1/
    urls.py         # URL routing
    serializers.py  # DRF serializers
    views.py        # API views
    permissions.py  # Custom permissions
    filters.py      # Query filters

Development Guidelines

Views and API Design

Models and Database

Serializers and Validation

Authentication and Authorization

Performance Optimization

Error Handling

{
    "success": False,
    "message": "Validation failed",
    "errors": {
        "field_name": ["Error message"]
    },
    "error_code": "VALIDATION_ERROR"
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.