api-stability.txt 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .. _misc-api-stability:
  2. =============
  3. API stability
  4. =============
  5. Although Django has not reached a 1.0 release, the bulk of Django's public APIs are
  6. stable as of the 0.95 release. This document explains which APIs will and will not
  7. change before the 1.0 release.
  8. What "stable" means
  9. ===================
  10. In this context, stable means:
  11. - All the public APIs -- everything documented in the linked documents, and
  12. all methods that don't begin with an underscore -- will not be moved or
  13. renamed without providing backwards-compatible aliases.
  14. - If new features are added to these APIs -- which is quite possible --
  15. they will not break or change the meaning of existing methods. In other
  16. words, "stable" does not (necessarily) mean "complete."
  17. - If, for some reason, an API declared stable must be removed or replaced, it
  18. will be declared deprecated but will remain in the API until at least
  19. version 1.1. Warnings will be issued when the deprecated method is
  20. called.
  21. - We'll only break backwards compatibility of these APIs if a bug or
  22. security hole makes it completely unavoidable.
  23. Stable APIs
  24. ===========
  25. These APIs are stable:
  26. - :ref:`Caching <topics-cache>`.
  27. - :ref:`Custom template tags and libraries <howto-custom-template-tags>`.
  28. - :ref:`Database lookup <topics-db-queries>` (with the exception of validation; see below).
  29. - :ref:`django-admin utility <ref-django-admin>`.
  30. - :ref:`FastCGI and mod_python integration <howto-deployment-index>`.
  31. - :ref:`Flatpages <ref-contrib-flatpages>`.
  32. - :ref:`Generic views <topics-http-generic-views>`.
  33. - :ref:`Internationalization <topics-i18n>`.
  34. - :ref:`Legacy database integration <howto-legacy-databases>`.
  35. - :ref:`Model definition <topics-db-models>` (with the exception of generic relations; see below).
  36. - :ref:`Redirects <ref-contrib-redirects>`.
  37. - :ref:`Request/response objects <ref-request-response>`.
  38. - :ref:`Sending e-mail <topics-email>`.
  39. - :ref:`Sessions <topics-http-sessions>`.
  40. - :ref:`Settings <topics-settings>`.
  41. - :ref:`Syndication <ref-contrib-syndication>`.
  42. - :ref:`Template language <topics-templates>` (with the exception of some
  43. possible disambiguation of how tag arguments are passed to tags and
  44. filters).
  45. - :ref:`Transactions <topics-db-transactions>`.
  46. - :ref:`URL dispatch <topics-http-urls>`.
  47. You'll notice that this list comprises the bulk of Django's APIs. That's right
  48. -- most of the changes planned between now and Django 1.0 are either under the
  49. hood, feature additions, or changes to a few select bits. A good estimate is
  50. that 90% of Django can be considered forwards-compatible at this point.
  51. That said, these APIs should *not* be considered stable, and are likely to
  52. change:
  53. - :ref:`Serialization <topics-serialization>` is under development; changes
  54. are possible.
  55. - Generic relations will most likely be moved out of core and into the
  56. content-types contrib package to avoid core dependencies on optional
  57. components.
  58. **New in development version**: this has now been done.
  59. - The comments framework, which is yet undocumented, will get a complete
  60. rewrite before Django 1.0.