Django 中文文档

Django的百科全书.

注解

本项目正在进行中,未翻译完成的部分仍然是英文显示,如果你有兴趣可以在github上加入我们。

获取帮助

如果您有问题,我们很乐意帮助您解决!

文档结构

这有很多关于Django的文档。一个好的组织结构能够帮助您在何处寻找你想要的内容:

  • 入门教程 一步步详解如何从零开始创建一个Web应用程序。如果您第一次使用Django或Web应用程序开发,那么请从这里开始。也就是下面的“入门”部分。
  • 主题指南 在比较高的层次上讨论某些话题和概念,并提供有用的背景信息和解释。
  • 参考指南 包含API和Django等方面的技术参考。专注描述了它的工作原理以及如何使用它, 但是这要求您对关键概念有基本的的了解。
  • 使用指南 就像一种秘诀。他们将帮助您完成解决关键问题和用例的步骤。他们比教程更先进,并且还会帮你了解Django的工作原理。

入门

你是刚学 Django 或是初学编程? 这就是你开始学习的地方!

模型层

Django提供一个抽象层(Models)以构建和操作你的web应用中的数据,通过以下内容了解更多:

视图层

Django使用”视图”这个概念, 负责处理用户请求并返回响应. 通过以下链接查找所有您需要知道的有关视图的信息:

模板层

模板层提供了一种设计器友好的语法, 用于渲染向用户呈现的信息. 学习如何使用语法(面向设计者)以及如何扩展(面向开发者):

Forms

Django provides a rich framework to facilitate the creation of forms and the manipulation of form data.

The development process

Learn about the various components and tools to help you in the development and testing of Django applications:

The admin

Find all you need to know about the automated admin interface, one of Django’s most popular features:

Security

Security is a topic of paramount importance in the development of Web applications and Django provides multiple protection tools and mechanisms:

Internationalization and localization

Django offers a robust internationalization and localization framework to assist you in the development of applications for multiple languages and world regions:

Performance and optimization

There are a variety of techniques and tools that can help get your code running more efficiently - faster, and using fewer system resources.

Python compatibility

Django aims to be compatible with multiple different flavors and versions of Python:

Geographic framework

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.

Other core functionalities

Learn about some other core functionalities of the Django framework:

The Django open-source project

Learn about the development process for the Django project itself and about how you can contribute: