如果感兴趣, 欢迎加入进来一起翻译。Folk 项目:https://github.com/jhao104/django-chinese-doc 提交你的内容。翻译后的文档会自动更新到:http://django-chinese-doc.readthedocs.io/zh_CN/latest/
你想知道的关于Django的一切。
Django有很多的文档。一个好的组织结构能够帮助您在何处寻找你想要的内容:
-
入门教程 一步步详解如何从零开始创建一个Web应用程序。如果您第一次使用Django或Web应用程序开发,那么请从这里开始。也就是下面的“入门”部分。
-
主题指南 在比较高的层次上讨论某些话题和概念,并提供有用的背景信息和解释。
-
参考指南 包含API和Django的机械等方面的技术参考。抓哟描述了它的工作原理以及如何使用它,但是这要求您对关键概念有基本的的了解。
-
方法指南 就像一种秘诀。他们将帮助您完成解决关键问题和用例的步骤。他们比教程更先进,并且还会帮你你了解Django的工作原理。
如果你是刚接触Django或编程,这是一个起点。
-
入门教程: Part1:请求与响应 | Part2:模型和管理站点 | Part3:视图和模板 | Part4:表单和通用视图 | Part5:测试 | Part6:静态文件 | Part7:自定义管理站点
-
进阶教程: 开发可重用的应用 | 开发Django补丁
Django提供一个抽象层(Models)以构建和操作你的web应用中的数据,通过以下内容了解更多:
-
查询集: 执行查询 | QuerySet方法 | 查询表达式
-
迁移: 迁移简介 (0%) | 操作参考 (0%) | SchemaEditor | 编写迁移 (0%)
-
高级: 管理器 | 原始SQL 事务 (0%) | 聚合 | 搜索 | 自定义字段 | 多数据库 |自定义查询 (0%)| 查询表达式 | 条件表达式 |数据库函数 (0%)
-
其他: 支持的数据库 (0%)|遗留的数据库 (0%)|提供初始数据 (0%)|优化数据库访问 (0%)|PostgreSQL specific features (0%)
Django使用"视图"这个概念, 负责处理用户请求并返回响应. 通过以下链接查找所有您需要知道的有关视图的信息:
-
The basics: URLconfs | View functions | Shortcuts | Decorators
-
参考: Built-in | 请求/响应对象 | TemplateResponse objects
-
File uploads: 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
-
Advanced: Generating CSV | Generating PDF
-
Middleware: Overview | Built-in middleware classes
模板层提供了一种设计器友好的语法, 用于渲染向用户呈现的信息. 学习如何使用语法(面向设计者)以及如何扩展(面向开发者):
-
The basics: Overview
-
对于设计者: 语法概述 | 内置标签和过滤器 | Humanization
-
For programmers: Template API | Custom tags and filters
Django provides a rich framework to facilitate the creation of forms and the manipulation of form data.
-
The basics: Overview | Form API | Built-in fields | Built-in widgets
-
Advanced: Forms for models | Integrating media | Formsets | Customizing validation
Learn about the various components and tools to help you in the development and testing of Django applications:
-
应用: 应用
-
Exceptions: Overview
-
django-admin和manage.py: Overview | Adding custom commands
-
Testing: Introduction | Writing and running tests | Included testing tools | Advanced topics
-
Deployment: Overview | WSGI servers | Deploying static files | Tracking code errors by email
Find all you need to know about the automated admin interface, one of Django's most popular features:
Security is a topic of paramount importance in the development of Web applications and Django provides multiple protection tools and mechanisms:
- Security overview
- Disclosed security issues in Django
- Clickjacking protection
- Cross Site Request Forgery protection
- Cryptographic signing
- Security Middleware
Django offers a robust internationalization and localization framework to assist you in the development of applications for multiple languages and world regions:
- Overview | Internationalization | Localization | Localized Web UI formatting and form input
- Time zones
There are a variety of techniques and tools that can help get your code running more efficiently - faster, and using fewer system resources.
Django aims to be compatible with multiple different flavors and versions of Python:
GeoDjango intends to be a world-class geographic Web framework. Its goal is to make it as easy as possible to build GIS Web applications and harness the power of spatially enabled data.
Django offers multiple tools commonly needed in the development of Web applications:
- Authentication: Overview | Using the authentication system | Password management | Customizing authentication | API Reference
- Caching
- Logging
- Sending emails
- Syndication feeds (RSS/Atom)
- Pagination
- Messages framework
- Serialization
- Sessions
- Sitemaps
- Static files management
- Data validation
Learn about some other core functionalities of the Django framework: