Using Django¶ 你需要知道的所有Django关键部分介绍: 如何安装Django 安装Python 安装Apache和 mod_wsgi 运行你的数据库 安装Django代码 模型和数据库 模型 进行查询 聚合 搜索 Managers Performing raw SQL queries 数据库事务 Multiple databases Tablespaces Database access optimization Database instrumentation Examples of model relationship API usage 处理 HTTP 请求 URL调度器 Writing views View decorators 文件上传 Django快捷函数 通用视图 中间件 如何使用会话 使用表单 HTML表单 Django在表单中的角色 Django 中的表单 构建一张表单 详解Django Form 类 使用表单模板 更多相关主题 模板 模板引擎的支持 The Django template language 基于类的视图 基于类的视图 Built-in class-based generic views Form handling with class-based views Using mixins with class-based views Basic examples Simple usage in your URLconf Subclassing generic views Migrations The Commands Backend Support Workflow Dependencies Migration files Adding migrations to apps Historical models Considerations when removing model fields Data Migrations Squashing migrations Serializing values Supporting multiple Django versions Managing files Using files in models The File object File storage Testing in Django Writing and running tests Testing tools Advanced testing topics Django中的用户认证 概况 安装 Usage Django's cache framework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API 下游缓存 使用 Vary 标头 使用其他标头控制高速缓存 ``MIDDLEWARE``顺序 Conditional View Processing The condition decorator Shortcuts for only computing one value Using the decorators with other HTTP methods Comparison with middleware conditional processing Cryptographic signing Protecting the SECRET_KEY Using the low-level API Sending email 快速上手 send_mail() send_mass_mail() mail_admins() mail_managers() 示例 Preventing header injection The EmailMessage class Email backends Configuring email for development 国际化和本地化 概况 Definitions 日志 日志管理快速入门 使用 logging 模块 日志模块的配置 Django's logging extensions Django's default logging configuration 分页 例如 在视图中使用 Paginator Paginator 对象 InvalidPage exceptions Page objects Security in Django Cross site scripting (XSS) protection Cross site request forgery (CSRF) protection SQL injection protection Clickjacking protection SSL/HTTPS Host header validation Session security User-uploaded content Additional security topics 性能和优化 介绍 一般方法 Caching Understanding laziness Databases HTTP performance Template performance Using different versions of available software Serializing Django objects Serializing data Deserializing data Serialization formats Natural keys Django settings 基础 指定配置文件 默认配置 在Python代码中使用settings 运行时更改设置 安全 可用的配置项 创建你自己的配置文件 Using settings without setting DJANGO_SETTINGS_MODULE 信号 Listening to signals Defining and sending signals Disconnecting signals 系统检查框架 Writing your own checks External packages Localflavor 注释(Comments) Formtools