deprecation.txt 1.2 KB

123456789101112131415161718192021222324252627282930
  1. .. _internals-deprecation:
  2. ===========================
  3. Django Deprecation Timeline
  4. ===========================
  5. This document outlines when various pieces of Django will be removed, following
  6. their deprecation, as per the :ref:`Django deprecation policy
  7. <internal-release-deprecation-policy>`
  8. * 1.3
  9. * ``AdminSite.root()``. This release will remove the old method for
  10. hooking up admin URLs. This has been deprecated since the 1.1
  11. release.
  12. * 1.4
  13. * ``CsrfResponseMiddleware``. This has been deprecated since the 1.2
  14. release, in favour of the template tag method for inserting the CSRF
  15. token. ``CsrfMiddleware``, which combines ``CsrfResponseMiddleware``
  16. and ``CsrfViewMiddleware``, is also deprecated.
  17. * The old imports for CSRF functionality (``django.contrib.csrf.*``),
  18. which moved to core in 1.2, will be removed.
  19. * 2.0
  20. * ``django.views.defaults.shortcut()``. This function has been moved
  21. to ``django.contrib.contenttypes.views.shortcut()`` as part of the
  22. goal of removing all ``django.contrib`` references from the core
  23. Django codebase. The old shortcut will be removed in the 2.0
  24. release.