glossary.txt 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 :ref:`topics-db-models`.
  10. generic view
  11. A higher-order :term:`view` function that abstracts common idioms and patterns
  12. found in view development and abstracts them.
  13. See :ref:`ref-generic-views`.
  14. model
  15. Models store your application's data.
  16. See :ref:`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 :ref:`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 separates the presentation of a document from its
  53. data.
  54. See :ref:`topics-templates`.
  55. view
  56. A function responsible for rending a page.