2
0

glossary.txt 2.3 KB

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