Glossary

concrete model
A non-abstract (abstract=False) model.
field

An attribute on a model; a given field usually maps directly to a single database column.

See Models.

generic view

A higher-order view function that provides an abstract/generic implementation of a common idiom or pattern found in view development.

See Class-based views.

model

Models store your application’s data.

See Models.

MTV

“Model-template-view”; a software pattern, similar in style to MVC, but a better description of the way Django does things.

See the FAQ entry.

MVC
模型 - 视图 - 控制器;一个软件模式。 Django 在某种程度上遵循MVC
project
Python包 - 即代码目录 - 包含Django实例的所有设置。 这将包括数据库配置,Django特定的选项和特定于应用程序的设置。
property

也称为“托管属性”,以及自2.2版以来的Python特性。 这是一种简洁的方式来实现其使用类似于属性访问的属性,但其实现使用方法调用。

请参阅属性

queryset

An object representing some set of rows to be fetched from the database.

See Making queries.

slug

A short label for something, containing only letters, numbers, underscores or hyphens. They’re generally used in URLs. For example, in a typical blog entry URL:

https://www.djangoproject.com/weblog/2008/apr/12/spring/

the last bit (spring) is the slug.

template

A chunk of text that acts as formatting for representing data. A template helps to abstract the presentation of data from the data itself.

See Templates.

view
A function responsible for rendering a page.