api-stability.txt 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. =============
  2. API stability
  3. =============
  4. :doc:`The release of Django 1.0 </releases/1.0>` comes with a promise of API
  5. stability and forwards-compatibility. In a nutshell, this means that code you
  6. develop against a 1.X version of Django will continue to work with future
  7. 1.X releases. You may need to make minor changes when upgrading the version of
  8. Django your project uses: see the "Backwards incompatible changes" section of
  9. the :doc:`release note </releases/index>` for the version or versions to which
  10. you are upgrading.
  11. What "stable" means
  12. ===================
  13. In this context, stable means:
  14. - All the public APIs (everything in this documentation) will not be moved
  15. or renamed without providing backwards-compatible aliases.
  16. - If new features are added to these APIs -- which is quite possible --
  17. they will not break or change the meaning of existing methods. In other
  18. words, "stable" does not (necessarily) mean "complete."
  19. - If, for some reason, an API declared stable must be removed or replaced, it
  20. will be declared deprecated but will remain in the API for at least two
  21. minor version releases. Warnings will be issued when the deprecated method
  22. is called.
  23. See :ref:`official-releases` for more details on how Django's version
  24. numbering scheme works, and how features will be deprecated.
  25. - We'll only break backwards compatibility of these APIs if a bug or
  26. security hole makes it completely unavoidable.
  27. Stable APIs
  28. ===========
  29. In general, everything covered in the documentation -- with the exception of
  30. anything in the :doc:`internals area </internals/index>` is considered stable.
  31. Exceptions
  32. ==========
  33. There are a few exceptions to this stability and backwards-compatibility
  34. promise.
  35. Security fixes
  36. --------------
  37. If we become aware of a security problem -- hopefully by someone following our
  38. :ref:`security reporting policy <reporting-security-issues>` -- we'll do
  39. everything necessary to fix it. This might mean breaking backwards
  40. compatibility; security trumps the compatibility guarantee.
  41. APIs marked as internal
  42. -----------------------
  43. Certain APIs are explicitly marked as "internal" in a couple of ways:
  44. - Some documentation refers to internals and mentions them as such. If the
  45. documentation says that something is internal, we reserve the right to
  46. change it.
  47. - Functions, methods, and other objects prefixed by a leading underscore
  48. (``_``). This is the standard Python way of indicating that something is
  49. private; if any method starts with a single ``_``, it's an internal API.