Django 1.10 文档

首页 | 目录 | 检索 | 模块
« previous | up | next »

Forms¶

Detailed form API reference. For introductory material, see the Working with forms topic guide.

  • The Forms API
    • Bound and unbound forms
    • Using forms to validate data
    • Dynamic initial values
    • Checking which form data has changed
    • Accessing the fields from the form
    • Accessing “clean” data
    • Outputting forms as HTML
    • More granular output
    • Customizing BoundField
    • Binding uploaded files to a form
    • Subclassing forms
    • Prefixes for forms
  • Form fields
    • Core field arguments
    • Checking if the field data has changed
    • Built-in Field classes
    • Slightly complex built-in Field classes
    • Fields which handle relationships
    • Creating custom fields
  • Model Form Functions
    • modelform_factory
    • modelformset_factory
    • inlineformset_factory
  • Formset Functions
    • formset_factory
  • Widgets
    • Specifying widgets
    • Setting arguments for widgets
    • Widgets inheriting from the Select widget
    • Customizing widget instances
    • Base widget classes
    • Built-in widgets
  • Form and field validation
    • Raising ValidationError
    • Using validation in practice

上一个主题

Uploaded Files and Upload Handlers

下一个主题

The Forms API

本页

  • 显示源代码

快速搜索

Last update:

10月 29, 2021

« previous | up | next »