2008-08-24 06:25:40 +08:00
|
|
|
.. _glossary:
|
|
|
|
|
|
|
|
========
|
|
|
|
Glossary
|
|
|
|
========
|
|
|
|
|
|
|
|
.. glossary::
|
|
|
|
|
|
|
|
field
|
|
|
|
An attribute on a :term:`model`; a given field usually maps directly to
|
|
|
|
a single database column.
|
2010-08-20 03:31:56 +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:31:56 +08:00
|
|
|
|
|
|
|
See :doc:`/ref/generic-views`.
|
2008-08-24 06:25:40 +08:00
|
|
|
|
|
|
|
model
|
|
|
|
Models store your application's data.
|
2010-08-20 03:31:56 +08:00
|
|
|
|
|
|
|
See :doc:`/topics/db/models`.
|
2008-08-24 06:25:40 +08:00
|
|
|
|
|
|
|
MTV
|
|
|
|
See :ref:`mtv`.
|
|
|
|
|
|
|
|
MVC
|
|
|
|
`Model-view-controller`__; a software pattern. Django :ref:`follows MVC
|
|
|
|
to some extent <mtv>`.
|
|
|
|
|
|
|
|
__ 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
|
|
|
|
version 2.2. From `the property documentation`__:
|
2010-08-20 03:31:56 +08:00
|
|
|
|
2008-08-24 06:25:40 +08:00
|
|
|
Properties are a neat way to implement attributes whose usage
|
|
|
|
resembles attribute access, but whose implementation uses method
|
|
|
|
calls. [...] You
|
|
|
|
could only do this by overriding ``__getattr__`` and
|
|
|
|
``__setattr__``; but overriding ``__setattr__`` slows down all
|
|
|
|
attribute assignments considerably, and overriding ``__getattr__``
|
|
|
|
is always a bit tricky to get right. Properties let you do this
|
|
|
|
painlessly, without having to override ``__getattr__`` or
|
|
|
|
``__setattr__``.
|
|
|
|
|
|
|
|
__ http://www.python.org/download/releases/2.2/descrintro/#property
|
|
|
|
|
|
|
|
queryset
|
|
|
|
An object representing some set of rows to be fetched from the database.
|
2010-08-20 03:31:56 +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:31:56 +08:00
|
|
|
|
2008-08-24 06:25:40 +08:00
|
|
|
.. parsed-literal::
|
2010-08-20 03:31:56 +08:00
|
|
|
|
2008-08-24 06:25:40 +08:00
|
|
|
http://www.djangoproject.com/weblog/2008/apr/12/**spring**/
|
2010-08-20 03:31:56 +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:31:56 +08:00
|
|
|
|
|
|
|
See :doc:`/topics/templates`.
|
|
|
|
|
2008-08-24 06:25:40 +08:00
|
|
|
view
|
2010-08-20 03:31:56 +08:00
|
|
|
A function responsible for rending a page.
|