parts/django/docs/glossary.txt
changeset 307 c6bca38c1cbf
equal deleted inserted replaced
306:5ff1fc726848 307:c6bca38c1cbf
       
     1 .. _glossary:
       
     2 
       
     3 ========
       
     4 Glossary
       
     5 ========
       
     6 
       
     7 .. glossary::
       
     8 
       
     9     field
       
    10         An attribute on a :term:`model`; a given field usually maps directly to
       
    11         a single database column.
       
    12 
       
    13         See :doc:`/topics/db/models`.
       
    14 
       
    15     generic view
       
    16         A higher-order :term:`view` function that provides an abstract/generic
       
    17         implementation of a common idiom or pattern found in view development.
       
    18 
       
    19         See :doc:`/ref/generic-views`.
       
    20 
       
    21     model
       
    22         Models store your application's data.
       
    23 
       
    24         See :doc:`/topics/db/models`.
       
    25 
       
    26     MTV
       
    27         See :ref:`mtv`.
       
    28 
       
    29     MVC
       
    30         `Model-view-controller`__; a software pattern. Django :ref:`follows MVC
       
    31         to some extent <mtv>`.
       
    32 
       
    33         __ http://en.wikipedia.org/wiki/Model-view-controller
       
    34 
       
    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.
       
    40 
       
    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__``.
       
    54 
       
    55         __ http://www.python.org/download/releases/2.2/descrintro/#property
       
    56 
       
    57     queryset
       
    58         An object representing some set of rows to be fetched from the database.
       
    59 
       
    60         See :doc:`/topics/db/queries`.
       
    61 
       
    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.
       
    72 
       
    73     template
       
    74         A chunk of text that acts as formatting for representing data. A
       
    75         template helps to abstract the presentation of data from the data
       
    76         itself.
       
    77 
       
    78         See :doc:`/topics/templates`.
       
    79 
       
    80     view
       
    81         A function responsible for rending a page.