Fixed #8247: Added explanation to admin docs to point out that AdminSite can be subcl...
[django.git] / docs / glossary.txt
blobc67c522ef7203eb3c6a7c64596b570ab29d7683a
1 .. _glossary:
3 ========
4 Glossary
5 ========
7 .. glossary::
9     field
10         An attribute on a :term:`model`; a given field usually maps directly to
11         a single database column.
12         
13         See :ref:`topics-db-models`.
15     generic view
16         A higher-order :term:`view` function that abstracts common idioms and patterns
17         found in view development and abstracts them.
18         
19         See :ref:`ref-generic-views`.
21     model
22         Models store your application's data.
23         
24         See :ref:`topics-db-models`.
26     MTV
27         See :ref:`mtv`.
29     MVC
30         `Model-view-controller`__; a software pattern. Django :ref:`follows MVC
31         to some extent <mtv>`.
33         __ http://en.wikipedia.org/wiki/Model-view-controller
35     project
36         A Python package -- i.e. a directory of code -- that contains all the
37         settings for an instance of Django. This would include database
38         configuration, Django-specific options and application-specific
39         settings.
41     property
42         Also known as "managed attributes", and a feature of Python since
43         version 2.2. From `the property documentation`__:
44         
45             Properties are a neat way to implement attributes whose usage
46             resembles attribute access, but whose implementation uses method
47             calls. [...] You
48             could only do this by overriding ``__getattr__`` and
49             ``__setattr__``; but overriding ``__setattr__`` slows down all
50             attribute assignments considerably, and overriding ``__getattr__``
51             is always a bit tricky to get right. Properties let you do this
52             painlessly, without having to override ``__getattr__`` or
53             ``__setattr__``.
55         __ http://www.python.org/download/releases/2.2/descrintro/#property
57     queryset
58         An object representing some set of rows to be fetched from the database.
59         
60         See :ref:`topics-db-queries`.
62     slug
63         A short label for something, containing only letters, numbers,
64         underscores or hyphens. They're generally used in URLs. For
65         example, in a typical blog entry URL:
66         
67         .. parsed-literal::
68         
69             http://www.djangoproject.com/weblog/2008/apr/12/**spring**/
70             
71         the last bit (``spring``) is the slug.
73     template
74         A chunk of text that separates the presentation of a document from its
75         data.
76         
77         See :ref:`topics-templates`.
78         
79     view
80         A function responsible for rending a page.