glossary.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. .. _glossary:
  2. ========
  3. Glossary
  4. ========
  5. .. glossary::
  6. field
  7. An attribute on a :term:`model`; a given field usually maps directly to
  8. a single database column.
  9. See :doc:`/topics/db/models`.
  10. generic view
  11. A higher-order :term:`view` function that provides an abstract/generic
  12. implementation of a common idiom or pattern found in view development.
  13. See :doc:`/ref/generic-views`.
  14. model
  15. Models store your application's data.
  16. See :doc:`/topics/db/models`.
  17. MTV
  18. "Model-template-view"; a software pattern, similar in style to MVC, but
  19. a better description of the way Django does things.
  20. See :ref:`the FAQ entry <faq-mtv>`.
  21. MVC
  22. `Model-view-controller`__; a software pattern. Django :ref:`follows MVC
  23. to some extent <faq-mtv>`.
  24. __ http://en.wikipedia.org/wiki/Model-view-controller
  25. project
  26. A Python package -- i.e. a directory of code -- that contains all the
  27. settings for an instance of Django. This would include database
  28. configuration, Django-specific options and application-specific
  29. settings.
  30. property
  31. Also known as "managed attributes", and a feature of Python since
  32. version 2.2. From `the property documentation`__:
  33. Properties are a neat way to implement attributes whose usage
  34. resembles attribute access, but whose implementation uses method
  35. calls. [...] You
  36. could only do this by overriding ``__getattr__`` and
  37. ``__setattr__``; but overriding ``__setattr__`` slows down all
  38. attribute assignments considerably, and overriding ``__getattr__``
  39. is always a bit tricky to get right. Properties let you do this
  40. painlessly, without having to override ``__getattr__`` or
  41. ``__setattr__``.
  42. __ http://www.python.org/download/releases/2.2/descrintro/#property
  43. queryset
  44. An object representing some set of rows to be fetched from the database.
  45. See :doc:`/topics/db/queries`.
  46. slug
  47. A short label for something, containing only letters, numbers,
  48. underscores or hyphens. They're generally used in URLs. For
  49. example, in a typical blog entry URL:
  50. .. parsed-literal::
  51. http://www.djangoproject.com/weblog/2008/apr/12/**spring**/
  52. the last bit (``spring``) is the slug.
  53. template
  54. A chunk of text that acts as formatting for representing data. A
  55. template helps to abstract the presentation of data from the data
  56. itself.
  57. See :doc:`/topics/templates`.
  58. view
  59. A function responsible for rending a page.