{"enrichment":{"faq":[{"a":"django-patterns teaches proven project organization approaches that scale. Structure your Django project with clear separation between settings (base, local, production), apps organized by feature or domain, and dedicated directories for templates, static files, and utilities. Follow conventions like placing business logic in service layers rather than models, using custom managers for complex queries, and organizing middleware for cross-cutting concerns. The skill covers layout conventions and structural patterns that prevent technical debt.","q":"How do I structure Django projects following best practices architecture?"},{"a":"django-patterns addresses N+1 query problems through select_related and prefetch_related optimization. Use select_related() for forward foreign keys and one-to-one relationships to fetch related objects in a single query. Apply prefetch_related() for reverse foreign keys and many-to-many relationships. The skill teaches when to use each, how to combine them, and bulk operations for batch inserts. Understanding query optimization prevents performance degradation as your Django application scales.","q":"What's the best way to optimize Django ORM queries and prevent N+1 issues?"},{"a":"django-patterns covers DRF serializer patterns for robust API development. Learn serializer validation techniques, nested serializers for complex data structures, and custom validation methods. The skill teaches how to structure serializers for different endpoints, handle relationships properly, and implement validation at field and object levels. Proper serializer patterns ensure your REST APIs validate input correctly and maintain data integrity across requests.","q":"How should I build REST APIs using Django REST Framework serializers?"},{"a":"django-patterns explains signals as a mechanism for loose coupling between Django apps. Signals allow one app to notify others of events (like model saves) without direct imports. The skill covers signal patterns for cross-app effects, best practices for signal handlers, and when signals are appropriate versus when service layers are better. Proper signal usage keeps your codebase modular while avoiding circular dependencies.","q":"What are django signals and how do I use them for cross-app communication?"},{"a":"django-patterns provides a code organization checklist highlighting anti-patterns to avoid. Common pitfalls include putting business logic directly in views, overusing signals for everything, ignoring query optimization, and poor settings configuration. The skill teaches why these patterns cause problems and what to do instead\u2014using service layers, middleware for cross-cutting concerns, and proper separation of concerns. Following these guidelines keeps your Django codebase maintainable and performant.","q":"What common Django anti-patterns should I avoid in my applications?"},{"a":"django-patterns covers middleware and service layer implementation patterns. Custom middleware intercepts requests/responses for logging, authentication, or request modification. Service layers encapsulate business logic, making it reusable across views and APIs. The skill teaches when to use each pattern, how to structure them properly, and examples of real-world implementations. These patterns improve code organization and make testing easier.","q":"How do I implement custom middleware and service layers in Django?"}],"shadow_tags":["orm-optimization","rest-api-design","query-performance","code-organization","middleware-patterns","data-validation","batch-operations","architectural-guide"],"summary_rewrite":"Learn proven Django patterns for building scalable applications, from organizing projects and optimizing database queries to structuring business logic with services and selectors. Covers Django REST Framework serializers, signals for cross-app effects, custom middleware, and common pitfalls to avoid."},"files":[{"bytes":4187,"path":"skills/django-patterns/SKILL.md","sha256":"80fea6d8313a8ec84eda4eefda2b6f73597e56621bfc963e9d93fe216d873c91","url":"https://skillfed.io/files/rohitg00/awesome-claude-code-toolkit/django-patterns/df84795c/SKILL.md"}],"id":"rohitg00/awesome-claude-code-toolkit/django-patterns","links":{"html":"https://skillfed.io/rohitg00/awesome-claude-code-toolkit/django-patterns","md":"https://skillfed.io/rohitg00/awesome-claude-code-toolkit/django-patterns.md","repo":"https://github.com/rohitg00/awesome-claude-code-toolkit"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":849,"language":"JavaScript","last_updated":"2026-05-12","license":"Apache-2.0","name":"django-patterns","publisher":"rohitg00","stars":2394},"relations":{"similar":[{"id":"xu-xiang/everything-claude-code-zh/django-patterns"},{"id":"affaan-m/ECC/django-patterns"},{"id":"majesticlabs-dev/majestic-marketplace/django-coder"},{"id":"bobmatnyc/claude-mpm-skills/django"},{"id":"Mindrally/skills/django-rest-api-development"},{"id":"Mindrally/skills/rest-api-django"},{"id":"Jeffallan/claude-skills/django-expert"},{"id":"irahardianto/awesome-agv/django-idioms"},{"id":"prowler-cloud/prowler/django-drf"},{"id":"personamanagmentlayer/pcl/django-expert"}]},"slug":{"owner":"rohitg00","repo":"awesome-claude-code-toolkit","skill":"django-patterns"},"version":"df84795c"}
