SKILL

django-patterns

Django architecture patterns, REST API design with DRF, ORM best practices, caching, signals, middleware, and production-grade Django applications.

Machine translation
Read the original Chinese text

Django架构模式,使用DRF设计REST API,ORM最佳实践,缓存,信号,中间件,以及生产级Django应用程序。

Target: Software development & testing. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original Chinese text

Topics in the source

  • Django 开发模式
  • 何时激活
  • 项目结构
  • 推荐布局
  • 拆分设置模式
  • 模型设计模式
  • 模型最佳实践
  • QuerySet 最佳实践

适用于可扩展、可维护应用程序的生产级 Django 架构模式。 构建 Django Web 应用程序时 设计 Django REST Framework API 时 使用 Django ORM 和模型时 设置 Django 项目结构时 实现缓存、信号、中间件时 | 模式 | 描述 | |---------|-------------| | 拆分设置 | 分离开发/生产/测试设置 | | 自定义 QuerySet | 可重用的查询方法 | | 服务层 | 业务逻辑分离 | | ViewSet | REST API 端点 | | 序列化器验证 | 请求/响应转换 | | select\related | 外键优化 | | prefetch\related | 多对多优化 | | 缓存优先 | 缓存昂贵操作 | | 信号 | 事件驱动操作 | | 中间件 | 请求/响应处理 | 请记住:Django 提供了许多快捷方式,但对于生产应用程序来说,结构和组织比简洁的代码更重要。为可维护性而构建。

Source repository
affaan-m/ECC
Source file
docs/zh-CN/skills/django-patterns/SKILL.md
Fixed revision
d2ef2680594f9a17526a6e1a2e18b3d242c5d17b
Read the complete original documentation ↗

Requirements

  • Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.

A small first task

先阅读原作者说明,再决定是否在自己的 AI 工具中使用。

Instructions for your AI tool

Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: affaan-m/ECC · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:50.326Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.