Class-based generic views - flattened index

This index provides an alternate organization of the reference documentation for class-based views. For each view, the effective attributes and methods from the class tree are represented under that view. For the reference documentation organized by the class which defines the behavior, see Class-based views.

参见

Classy Class-Based Views provides a nice interface to navigate the class hierarchy of the built-in class-based views.

Simple generic views

View

class View

Attributes (with optional accessor):

方法

TemplateView

class TemplateView

Attributes (with optional accessor):

方法

RedirectView

class RedirectView

Attributes (with optional accessor):

方法

详情视图

DetailView

class DetailView

Attributes (with optional accessor):

方法

列表视图

ListView

class ListView

Attributes (with optional accessor):

方法

编辑视图

FormView

class FormView

Attributes (with optional accessor):

方法

CreateView

class CreateView

Attributes (with optional accessor):

方法

UpdateView

class UpdateView

Attributes (with optional accessor):

方法

DeleteView

class DeleteView

Attributes (with optional accessor):

方法

基于日期的视图

ArchiveIndexView

class ArchiveIndexView

Attributes (with optional accessor):

方法

YearArchiveView

class YearArchiveView

Attributes (with optional accessor):

方法

MonthArchiveView

class MonthArchiveView

Attributes (with optional accessor):

方法

WeekArchiveView

class WeekArchiveView

Attributes (with optional accessor):

方法

DayArchiveView

class DayArchiveView

Attributes (with optional accessor):

方法

TodayArchiveView

class TodayArchiveView

Attributes (with optional accessor):

方法

DateDetailView

class DateDetailView

Attributes (with optional accessor):

方法