glossary.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. See :ref:`mtv`.
  19. MVC
  20. `Model-view-controller`__; a software pattern. Django :ref:`follows MVC
  21. to some extent <mtv>`.
  22. __ http://en.wikipedia.org/wiki/Model-view-controller
  23. project
  24. A Python package -- i.e. a directory of code -- that contains all the
  25. settings for an instance of Django. This would include database
  26. configuration, Django-specific options and application-specific
  27. settings.
  28. property
  29. Also known as "managed attributes", and a feature of Python since
  30. version 2.2. From `the property documentation`__:
  31. Properties are a neat way to implement attributes whose usage
  32. resembles attribute access, but whose implementation uses method
  33. calls. [...] You
  34. could only do this by overriding ``__getattr__`` and
  35. ``__setattr__``; but overriding ``__setattr__`` slows down all
  36. attribute assignments considerably, and overriding ``__getattr__``
  37. is always a bit tricky to get right. Properties let you do this
  38. painlessly, without having to override ``__getattr__`` or
  39. ``__setattr__``.
  40. __ http://www.python.org/download/releases/2.2/descrintro/#property
  41. queryset
  42. An object representing some set of rows to be fetched from the database.
  43. See :doc:`/topics/db/queries`.
  44. slug
  45. A short label for something, containing only letters, numbers,
  46. underscores or hyphens. They're generally used in URLs. For
  47. example, in a typical blog entry URL:
  48. .. parsed-literal::
  49. http://www.djangoproject.com/weblog/2008/apr/12/**spring**/
  50. the last bit (``spring``) is the slug.
  51. template
  52. A chunk of text that acts as formatting for representing data. A
  53. template helps to abstract the presentation of data from the data
  54. itself.
  55. See :doc:`/topics/templates`.
  56. view
  57. A function responsible for rending a page.