{"enrichment":{"faq":[{"a":"Django Expert teaches you to define database indexes on your models using the `db_index=True` parameter on fields or the `Meta.indexes` list for composite indexes. Proper indexing on frequently queried fields\u2014like foreign keys and filter columns\u2014dramatically improves query speed. Django Expert also covers the N+1 problem and shows how `select_related()` and `prefetch_related()` eliminate redundant database hits when fetching related objects.","q":"How do I build Django models with indexes for better performance?"},{"a":"Django Expert guides you through creating serializers that validate input data and transform model instances to JSON. You'll learn to choose between `APIView`, `ViewSet`, and `ModelViewSet` based on your needs\u2014ModelViewSet provides CRUD operations automatically. Django Expert shows how to customize serializer fields, override validation methods, and configure viewsets with proper pagination, filtering, and permissions for production REST APIs.","q":"What's the best way to set up Django REST Framework serializers and viewsets?"},{"a":"Django Expert teaches query optimization through `select_related()` for one-to-one and foreign key relationships and `prefetch_related()` for many-to-many and reverse foreign keys. These methods reduce multiple database queries to one or two, dramatically improving performance. Django Expert also covers raw SQL parameterization for complex queries and shows how to use Django's query introspection tools to identify slow queries in development.","q":"How can I optimize Django ORM queries to avoid the N+1 problem?"},{"a":"Django Expert covers setting up JWT authentication using packages like `djangorestframework-simplejwt`, configuring token generation on login, and validating tokens on protected endpoints. You'll learn to implement custom permission classes, use `IsAuthenticated` and `IsAdminUser`, and combine permissions with viewsets. Django Expert also covers CSRF security best practices and environment-based secret management for production deployments.","q":"How do I implement JWT authentication and permissions in Django REST Framework?"},{"a":"Django Expert shows how to use `APITestCase` to write comprehensive tests for your endpoints, including authentication flows, permission checks, and response validation. You'll learn to mock requests, assert status codes and response data, and test edge cases. Django Expert emphasizes test coverage for serializer validation, viewset logic, and error handling to ensure your REST APIs behave correctly before production.","q":"How should I write and test Django REST API endpoints with APITestCase?"},{"a":"Django Expert covers production settings including environment variables for secrets, DEBUG=False, allowed hosts configuration, and static/media file handling. You'll learn database connection pooling, cache configuration, and async view setup for Django 5.0. Django Expert emphasizes security hardening: HTTPS enforcement, secure cookies, CORS policies, and comprehensive logging to monitor your production REST API.","q":"What are the key steps for configuring Django for production deployment?"}],"shadow_tags":["api-framework","backend-specialist","orm-optimization","rest-api-builder","query-performance","auth-implementation","schema-design","production-ready"],"summary_rewrite":"Django Expert guides you through building production-grade REST APIs using Django and Django REST Framework. It covers model design with database indexes, query optimization via select_related and prefetch_related, serializer validation, viewset implementation, and authentication setup. The skill enforces best practices like environment-based secrets, proper permissions, and comprehensive testing."},"files":[{"bytes":6003,"path":"skills/django-expert/SKILL.md","sha256":"a31857b227edfb90f6bed2f231ae46a797775627f597185d48c68965de3ce39c","url":"https://skillfed.io/files/Jeffallan/claude-skills/django-expert/67029bd2/SKILL.md"}],"id":"Jeffallan/claude-skills/django-expert","links":{"html":"https://skillfed.io/Jeffallan/claude-skills/django-expert","md":"https://skillfed.io/Jeffallan/claude-skills/django-expert.md","repo":"https://github.com/Jeffallan/claude-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":984,"language":"Python","last_updated":"2026-05-20","license":"MIT","name":"django-expert","publisher":"Jeffallan","stars":10759},"relations":{"similar":[{"id":"personamanagmentlayer/pcl/django-expert"},{"id":"vintasoftware/django-ai-plugins/django-expert"},{"id":"bobmatnyc/claude-mpm-skills/django"},{"id":"prowler-cloud/prowler/django-drf"},{"id":"xu-xiang/everything-claude-code-zh/django-patterns"},{"id":"Gentleman-Programming/Gentleman-Skills/django-drf"},{"id":"pluginagentmarketplace/custom-plugin-python/django-framework"},{"id":"affaan-m/ECC/django-patterns"},{"id":"rohitg00/awesome-claude-code-toolkit/django-patterns"},{"id":"majesticlabs-dev/majestic-marketplace/django-coder"}]},"slug":{"owner":"Jeffallan","repo":"claude-skills","skill":"django-expert"},"version":"67029bd2"}
