index.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. ``django.contrib.postgres``
  2. ===========================
  3. .. module:: django.contrib.postgres
  4. :synopsis: PostgreSQL-specific fields and features
  5. .. versionadded:: 1.8
  6. PostgreSQL has a number of features which are not shared by the other databases
  7. Django supports. This optional module contains model fields and form fields for
  8. a number of PostgreSQL specific data types.
  9. Psycopg2 2.5 or higher is required.
  10. .. note::
  11. Django is, and will continue to be, a database-agnostic web framework. We
  12. would encourage those writing reusable applications for the Django
  13. community to write database-agnostic code where practical. However, we
  14. recognize that real world projects written using Django need not be
  15. database-agnostic. In fact, once a project reaches a given size changing
  16. the underlying data store is already a significant challenge and is likely
  17. to require changing the code base in some ways to handle differences
  18. between the data stores.
  19. Django provides support for a number of data types which will
  20. only work with PostgreSQL. There is no fundamental reason why (for example)
  21. a ``contrib.mysql`` module does not exist, except that PostgreSQL has the
  22. richest feature set of the supported databases so its users have the most
  23. to gain.
  24. .. toctree::
  25. :maxdepth: 2
  26. aggregates
  27. fields
  28. forms
  29. lookups
  30. operations
  31. validators