2008-08-24 06:25:40 +08:00
|
|
|
.. _glossary:
|
|
|
|
|
|
|
|
========
|
|
|
|
Glossary
|
|
|
|
========
|
|
|
|
|
|
|
|
.. glossary::
|
|
|
|
|
2014-09-08 20:41:59 +08:00
|
|
|
concrete model
|
|
|
|
A non-abstract (:attr:`abstract=False
|
|
|
|
<django.db.models.Options.abstract>`) model.
|
|
|
|
|
2008-08-24 06:25:40 +08:00
|
|
|
field
|
|
|
|
An attribute on a :term:`model`; a given field usually maps directly to
|
|
|
|
a single database column.
|
2010-08-20 03:27:44 +08:00
|
|
|
|
|
|
|
See :doc:`/topics/db/models`.
|
2008-08-24 06:25:40 +08:00
|
|
|
|
|
|
|
generic view
|
2009-04-01 07:34:03 +08:00
|
|
|
A higher-order :term:`view` function that provides an abstract/generic
|
|
|
|
implementation of a common idiom or pattern found in view development.
|
2010-08-20 03:27:44 +08:00
|
|
|
|
2012-06-11 16:34:00 +08:00
|
|
|
See :doc:`/topics/class-based-views/index`.
|
2008-08-24 06:25:40 +08:00
|
|
|
|
|
|
|
model
|
|
|
|
Models store your application's data.
|
2010-08-20 03:27:44 +08:00
|
|
|
|
|
|
|
See :doc:`/topics/db/models`.
|
2008-08-24 06:25:40 +08:00
|
|
|
|
|
|
|
MTV
|
2011-03-22 22:35:14 +08:00
|
|
|
"Model-template-view"; a software pattern, similar in style to MVC, but
|
|
|
|
a better description of the way Django does things.
|
|
|
|
|
|
|
|
See :ref:`the FAQ entry <faq-mtv>`.
|
2008-08-24 06:25:40 +08:00
|
|
|
|
|
|
|
MVC
|
|
|
|
`Model-view-controller`__; a software pattern. Django :ref:`follows MVC
|
2011-03-22 22:35:14 +08:00
|
|
|
to some extent <faq-mtv>`.
|
2008-08-24 06:25:40 +08:00
|
|
|
|
|
|
|
__ http://en.wikipedia.org/wiki/Model-view-controller
|
|
|
|
|
|
|
|
project
|
|
|
|
A Python package -- i.e. a directory of code -- that contains all the
|
|
|
|
settings for an instance of Django. This would include database
|
|
|
|
configuration, Django-specific options and application-specific
|
|
|
|
settings.
|
|
|
|
|
|
|
|
property
|
|
|
|
Also known as "managed attributes", and a feature of Python since
|
2011-09-05 05:17:30 +08:00
|
|
|
version 2.2. This is a neat way to implement attributes whose usage
|
|
|
|
resembles attribute access, but whose implementation uses method calls.
|
|
|
|
|
|
|
|
See :func:`property`.
|
2008-08-24 06:25:40 +08:00
|
|
|
|
|
|
|
queryset
|
|
|
|
An object representing some set of rows to be fetched from the database.
|
2010-08-20 03:27:44 +08:00
|
|
|
|
|
|
|
See :doc:`/topics/db/queries`.
|
2008-08-24 06:25:40 +08:00
|
|
|
|
|
|
|
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:
|
2010-08-20 03:27:44 +08:00
|
|
|
|
2008-08-24 06:25:40 +08:00
|
|
|
.. parsed-literal::
|
2010-08-20 03:27:44 +08:00
|
|
|
|
2012-03-14 01:53:31 +08:00
|
|
|
https://www.djangoproject.com/weblog/2008/apr/12/**spring**/
|
2010-08-20 03:27:44 +08:00
|
|
|
|
2008-08-24 06:25:40 +08:00
|
|
|
the last bit (``spring``) is the slug.
|
|
|
|
|
|
|
|
template
|
2009-04-01 07:34:03 +08:00
|
|
|
A chunk of text that acts as formatting for representing data. A
|
|
|
|
template helps to abstract the presentation of data from the data
|
|
|
|
itself.
|
2010-08-20 03:27:44 +08:00
|
|
|
|
|
|
|
See :doc:`/topics/templates`.
|
|
|
|
|
2008-08-24 06:25:40 +08:00
|
|
|
view
|
2014-03-03 00:05:57 +08:00
|
|
|
A function responsible for rendering a page.
|