你需要知道的关于 Django 的一切。
你对Django还是编程新手?这是开始的地方!
从头开始: Overview γ Installation
Tutorial: Part 1: Requests and responses | Part 2: Models and the admin site | Part 3: Views and templates | Part 4: Forms and generic views | Part 5: Testing | Part 6: Static files | Part 7: Customizing the admin site | Part 8: Adding third-party packages
高级教程: How to write reusable apps γ Writing your first patch for Django
有麻烦吗?我们想帮忙!
试试 FAQ --它有许多常见问题的答案。
寻找具体信息?试试 索引 , 模块索引 或 detailed table of contents .
什么也没发现?看到了吗 常见问题解答:获取帮助 获取关于获得支持和向社区提问的信息。
在我们的 ticket tracker .
Django有很多文档。对其组织方式的高级概述将帮助您了解在哪里查找某些内容:
Tutorials 带您手把手完成创建Web应用程序的一系列步骤。如果您是Django或Web应用程序开发的新手,请从这里开始。另请看“:ref:index-first-steps”。
Topic guides 在相当高的层次上讨论关键的主题和概念,并提供有用的背景信息和解释。
Reference guides 包含api的技术参考和 Django 机械其他方面的技术参考。它们描述了它是如何工作的以及如何使用它,但是假设您对关键概念有一个基本的理解。
How-to guides 是方法。它们指导您完成解决关键问题和用例所涉及的步骤。他们比教程更高级,并且对Django的工作方式有一定的了解。
Django为组织和操作Web应用程序的数据提供了抽象层(“模型”)。在下面了解有关它的更多信息:
模型: Introduction to models γ Field types γ Indexes γ Meta options γ Model class
QuerySets: Making queries γ QuerySet method reference γ Lookup expressions
迁徙: Introduction to Migrations γ Operations reference γ SchemaEditor γ Writing migrations
高级: Managers γ Raw SQL γ Transactions γ Aggregation γ Search γ Custom fields γ Multiple databases γ Custom lookups γ Query Expressions γ Conditional Expressions γ Database Functions
其他: Supported databases γ Legacy databases γ Providing initial data γ Optimize database access γ PostgreSQL specific features
Django有“视图”的概念,它封装了负责处理用户请求和返回响应的逻辑。通过以下链接查找您需要了解的有关视图的所有信息:
基础知识: URLconfs | View functions | Shortcuts | Decorators | Asynchronous Support
参考文献: Built-in Views γ Request/response objects γ TemplateResponse objects
文件上传: Overview γ File objects γ Storage API γ Managing files γ Custom storage
Class-based views: Overview γ Built-in display views γ Built-in editing views γ Using mixins γ API reference γ Flattened index
高级: Generating CSV γ Generating PDF
模板层提供了一种设计器友好的语法,用于呈现要提供给用户的信息。了解设计者如何使用此语法以及程序员如何扩展它:
基础知识: Overview
设计师: Language overview γ Built-in tags and filters γ Humanization
对于程序员: Template API | Custom tags and filters | Custom template backend
Django提供了一个丰富的框架,以方便表单的创建和表单数据的操作。
基础知识: Overview γ Form API γ Built-in fields γ Built-in widgets
高级: Forms for models γ Integrating media γ Formsets γ Customizing validation
了解帮助您开发和测试django应用程序的各种组件和工具:
应用: Overview
例外情况: Overview
django-admin and manage.py: Overview γ Adding custom commands
测试: Introduction γ Writing and running tests γ Included testing tools γ Advanced topics
部署: Overview | WSGI servers | ASGI servers | Deploying static files | Tracking code errors by email | Deployment checklist
找到所有你需要了解的自动管理界面,这是Django最流行的功能之一:
安全是Web应用程序开发中最重要的主题,Django提供了多种保护工具和机制:
Django提供强大的国际化和本地化框架,帮助您开发多种语言和世界各地的应用程序:
有多种技术和工具可以帮助您的代码更高效地运行-更快,并且使用更少的系统资源。
GeoDjango 打算成为一个世界级的地理Web框架。其目标是使构建地理信息系统Web应用程序变得尽可能容易,并利用空间数据的力量。
Django提供了Web应用程序开发中常用的多种工具:
了解Django框架的其他一些核心功能:
了解Django项目本身的开发过程以及您如何做出贡献:
Community: How to get involved | The release process | Team organization | The Django source code repository | Security policies | Mailing lists and Forum
设计理念: Overview
Third-party distributions: Overview
随着时间的推移: API stability γ Release notes and upgrading instructions γ Deprecation Timeline