index.txt 1.4 KB

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