-
Django documentation¶
django 文档
-
Everything you need to know about Django.
一切你想知道的,有关django的东西
-
How the documentation is organized¶
文档如何组织的?
-
Django has a lot of documentation. A high-level overview of how it’s organized will help you know where to look for certain things:
django有大量的文档. 一个好的概述,将会帮助你知道到哪儿去找某些用法或特性:
-
Tutorials take you by the hand through a series of steps to create a Web application. Start here if you’re new to Django or Web application development. Also look at the “First steps” below.
教程将通过几个步骤,手把手带你创建一个web应用.如果你是刚接触django或者刚接触web应用,请从这里开始.当然,接下来请看 "第一步".
-
Topic guides discuss key topics and concepts at a fairly high level and provide useful background information and explanation.
主题指南将在相当高的水平上讨论关键主题和概念,以及提供有用的背景信息和解释.
-
Reference guides contain technical reference for APIs and other aspects of Django’s machinery. They describe how it works and how to use it but assume that you have a basic understanding of key concepts.
参考指南包含了django中api的使用参考,以及关于django运转的一些其他知识.它描述了django如何工作以及如何使用它们,当然,前提是你对django的基础概念已经有了基础的认识.
-
How-to guides are recipes. They guide you through the steps involved in addressing key problems and use-cases. They are more advanced than tutorials and assume some knowledge of how Django works.
实操指南是秘诀. 他们通过解决关键问题的步骤和实例来指导我们. 在指导如何使用django上,它比教程更好.
-
-
First steps¶
第一步
-
Are you new to Django or to programming? This is the place to start!
你是刚接触django或者编程么? 这里就是开始的地方!
-
From scratch: 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
教程: 第一部分: 请求和响应 | 第二部分: 模型和管理界面 | 第三部分: 试图和模板 | 第四部分: 表单和通用视图 | 第五部分: 测试 | 第六部分: 静态文件 | 第七部分: 定制管理界面
-
Advanced Tutorials: How to write reusable apps | Writing your first patch for Django
高级教程: 如何写可重复用的app | 用django写你的第一个补丁
-
-
The model layer¶
模型层
-
Django provides an abstraction layer (the “models”) for structuring and manipulating the data of your Web application. Learn more about it below:
django为构建和操纵web程序, 提供了一个抽象层, 即模型层.通过下面了解更多:
-
Models: Introduction to models | Field types | Indexes | Meta options | Model class
模型: 介绍模型 | 字段类型 | 索引 | 元选项(可定义的变量, 如表名, 等, 用于设置关于表的相关信息) | 模型的类
-
QuerySets: Making queries | QuerySet method reference | Lookup expressions
-
Model instances: Instance methods | Accessing related objects
-
Migrations: Introduction to Migrations | Operations reference | SchemaEditor | Writing migrations
-
Advanced: Managers | Raw SQL | Transactions | Aggregation | Search | Custom fields | Multiple databases | Custom lookups | Query Expressions | Conditional Expressions | Database Functions
高级: 管理 | 原始SQL | 事物 | 聚集 | 搜索 | 自定义字段 | 多数据库 | [自定义查找] (https://docs.djangoproject.com/en/1.11/howto/custom-lookups/)| 查询表达式 | 条件表达式 | 数据库函数or功能
-
Other: Supported databases | Legacy databases | Providing initial data | Optimize database access | PostgreSQL specific features
其他: 支持的数据库 | 传统的数据库 | 提供初始数据 | 优化数据库访问 | postgresql的特点
-
-
The view layer¶
视图层
-
Django has the concept of “views” to encapsulate the logic responsible for processing a user’s request and for returning the response. Find all you need to know about views via the links below:
django 视图的概念是, 用于处理用户的请求和返回响应. 最后, 关于视图, 你需要了解一下内容:
-
The basics: URLconfs | View functions | Shortcuts | Decorators
基础: url配置-urlconfigs | 视图函数 | 快捷办法 | 装饰
-
Reference: Built-in Views | Request/response objects | 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 template layer¶
模板层
-
The template layer provides a designer-friendly syntax for rendering the information to be presented to the user. Learn how this syntax can be used by designers and how it can be extended by programmers:
当web应用在通过render响应用户请求时, 模型层提供了一个设计-友好的语法. 学习这种语法如何使用以及程序员该如何扩展它:
-
The basics: Overview
基础: 概述
-
For designers: Language overview | Built-in tags and filters | Humanization
-
For programmers: Template API | Custom tags and filters
-
-
Forms¶
表单
-
Django provides a rich framework to facilitate the creation of forms and the manipulation of form data.
django 提供了一个丰富的框架来推动大家使用表单. 操纵表单数据.
-
The basics: Overview | Form API | Built-in fields | Built-in widgets
-
Advanced: Forms for models | Integrating media | Formsets | Customizing validation
-
-
The development process¶
开发过程
-
Learn about the various components and tools to help you in the development and testing of Django applications:
学习各种组件和工具 来帮助你开发和测试django项目
-
Settings: Overview | Full list of settings
-
Applications: Overview
app: 概述
-
Exceptions: Overview
异常: 概述
-
django-admin and 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
-
-
The admin¶
超级管理
-
Find all you need to know about the automated admin interface, one of Django’s most popular features:
关于django最流行的功能——自动化管理界面,你所需要知道的都在下面:
-
Security¶
安全
-
Security is a topic of paramount importance in the development of Web applications and Django provides multiple protection tools and mechanisms:
在web开发过程中, 安全是一个非常重要的话题, django 提供了多重保护工具和机制:
-
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:
django提供了一个强大的国际化和本土化框架来帮助你开发可以对应多种语言和地区的应用程序
-
Overview | Internationalization | Localization | Localized Web UI formatting and form input
概述 | 国际化 | 本土化 | 本土化的web界面格式和表单输入
-
Time zones
-
-
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¶
python 的兼容性
-
Django aims to be compatible with multiple different flavors and versions of Python:
django 致力于被不同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.
GeDjango 打算成为一个世界级的地理web框架. 它的目标是尽可能简单的构建 GIS web程序, 并利用空间中被启用的数据.
-
Common Web application tools¶
通用web应用程序工具
-
Django offers multiple tools commonly needed in the development of Web applications:
django 提供了多种在web开发中需要的工具
-
Authentication: Overview | Using the authentication system | Password management | Customizing authentication | API Reference
-
-
Other core functionalities¶
其他核心功能
-
Learn about some other core functionalities of the Django framework:
学习django框架中的其他核心功能
-
The Django open-source project¶
django 开源想项目
-
Learn about the development process for the Django project itself and about how you can contribute:
学习django发展过程, 以及你该如何贡献:
-
Community: How to get involved | The release process | Team organization | The Django source code repository | Security policies | Mailing lists
-
Design philosophies: Overview
设计哲学: 概述
-
Documentation: About this documentation
文档: 关于这个文档
-
Third-party distributions: Overview
第三方分布: 概述
-
Django over time: API stability | Release notes and upgrading instructions | Deprecation Timeline
-
网友评论