2.0.txt 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. ============================================
  2. Django 2.0 release notes - UNDER DEVELOPMENT
  3. ============================================
  4. Welcome to Django 2.0!
  5. These release notes cover the :ref:`new features <whats-new-2.0>`, as well as
  6. some :ref:`backwards incompatible changes <backwards-incompatible-2.0>` you'll
  7. want to be aware of when upgrading from Django 1.11 or earlier. We've
  8. :ref:`dropped some features<removed-features-2.0>` that have reached the end of
  9. their deprecation cycle, and we've :ref:`begun the deprecation process for some
  10. features <deprecated-features-2.0>`.
  11. See the :doc:`/howto/upgrade-version` guide if you're updating an existing
  12. project.
  13. Python compatibility
  14. ====================
  15. Django 2.0 supports Python 3.5+. Since Django 1.11, support for Python 2.7 and
  16. 3.4 is removed. We **highly recommend** and only officially support the latest
  17. release of each series.
  18. Third-party library support for older version of Django
  19. =======================================================
  20. Following the release of Django 2.0, we suggest that third-party app authors
  21. drop support for all versions of Django prior to 1.11. At that time, you should
  22. be able run your package's tests using ``python -Wd`` so that deprecation
  23. warnings do appear. After making the deprecation warning fixes, your app should
  24. be compatible with Django 2.0.
  25. .. _whats-new-2.0:
  26. What's new in Django 2.0
  27. ========================
  28. Minor features
  29. --------------
  30. :mod:`django.contrib.admin`
  31. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  32. * ...
  33. :mod:`django.contrib.admindocs`
  34. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35. * ...
  36. :mod:`django.contrib.auth`
  37. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  38. * ...
  39. :mod:`django.contrib.contenttypes`
  40. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  41. * ...
  42. :mod:`django.contrib.gis`
  43. ~~~~~~~~~~~~~~~~~~~~~~~~~
  44. * ...
  45. :mod:`django.contrib.messages`
  46. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  47. * ...
  48. :mod:`django.contrib.postgres`
  49. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  50. * ...
  51. :mod:`django.contrib.redirects`
  52. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  53. * ...
  54. :mod:`django.contrib.sessions`
  55. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  56. * ...
  57. :mod:`django.contrib.sitemaps`
  58. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  59. * ...
  60. :mod:`django.contrib.sites`
  61. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  62. * ...
  63. :mod:`django.contrib.staticfiles`
  64. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  65. * ...
  66. :mod:`django.contrib.syndication`
  67. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68. * ...
  69. Cache
  70. ~~~~~
  71. * ...
  72. CSRF
  73. ~~~~
  74. * ...
  75. Database backends
  76. ~~~~~~~~~~~~~~~~~
  77. * ...
  78. Email
  79. ~~~~~
  80. * ...
  81. File Storage
  82. ~~~~~~~~~~~~
  83. * ...
  84. File Uploads
  85. ~~~~~~~~~~~~
  86. * ...
  87. Forms
  88. ~~~~~
  89. * ...
  90. Generic Views
  91. ~~~~~~~~~~~~~
  92. * ...
  93. Internationalization
  94. ~~~~~~~~~~~~~~~~~~~~
  95. * ...
  96. Management Commands
  97. ~~~~~~~~~~~~~~~~~~~
  98. * ...
  99. Migrations
  100. ~~~~~~~~~~
  101. * ...
  102. Models
  103. ~~~~~~
  104. * ...
  105. Requests and Responses
  106. ~~~~~~~~~~~~~~~~~~~~~~
  107. * ...
  108. Serialization
  109. ~~~~~~~~~~~~~
  110. * ...
  111. Signals
  112. ~~~~~~~
  113. * ...
  114. Templates
  115. ~~~~~~~~~
  116. * ...
  117. Tests
  118. ~~~~~
  119. * ...
  120. URLs
  121. ~~~~
  122. * ...
  123. Validators
  124. ~~~~~~~~~~
  125. * ...
  126. .. _backwards-incompatible-2.0:
  127. Backwards incompatible changes in 2.0
  128. =====================================
  129. Database backend API
  130. --------------------
  131. * ...
  132. Miscellaneous
  133. -------------
  134. * ...
  135. .. _deprecated-features-2.0:
  136. Features deprecated in 2.0
  137. ==========================
  138. Miscellaneous
  139. -------------
  140. * ...
  141. .. _removed-features-2.0:
  142. Features removed in 2.0
  143. =======================
  144. These features have reached the end of their deprecation cycle and are removed
  145. in Django 2.0. See :ref:`deprecated-features-1.9` and
  146. :ref:`deprecated-features-1.10` for details, including how to remove usage of
  147. these features.
  148. * The ``weak`` argument to ``django.dispatch.signals.Signal.disconnect()`` is
  149. removed.
  150. * ``django.db.backends.base.BaseDatabaseOperations.check_aggregate_support()``
  151. is removed.
  152. * The ``django.forms.extras`` package is removed.
  153. * The ``assignment_tag`` helper is removed.
  154. * The ``host`` argument to ``SimpleTestCase.assertsRedirects()`` is removed.
  155. The compatibility layer which allows absolute URLs to be considered equal to
  156. relative ones when the path is identical is also removed.
  157. * ``Field.rel`` and ``Field.remote_field.to`` are removed.
  158. * The ``on_delete`` argument for ``ForeignKey`` and ``OneToOneField`` are now
  159. required.
  160. * ``django.db.models.fields.add_lazy_relation()`` is removed.
  161. * When time zone support is enabled, database backends that don't support time
  162. zones no longer convert aware datetimes to naive values in UTC anymore when
  163. such values are passed as parameters to SQL queries executed outside of the
  164. ORM, e.g. with ``cursor.execute()``.
  165. * ``django.contrib.auth.tests.utils.skipIfCustomUser()`` is removed.
  166. * The ``GeoManager`` and ``GeoQuerySet`` classes are removed.
  167. * The ``django.contrib.gis.geoip`` module is removed.
  168. * The ``supports_recursion`` check for template loaders is removed from:
  169. * ``django.template.engine.Engine.find_template()``
  170. * ``django.template.loader_tags.ExtendsNode.find_template()``
  171. * ``django.template.loaders.base.Loader.supports_recursion()``
  172. * ``django.template.loaders.cached.Loader.supports_recursion()``
  173. * The ``load_template`` and ``load_template_sources`` template loader methods
  174. are removed.
  175. * The ``template_dirs`` argument for template loaders is removed:
  176. * ``django.template.loaders.base.Loader.get_template()``
  177. * ``django.template.loaders.cached.Loader.cache_key()``
  178. * ``django.template.loaders.cached.Loader.get_template()``
  179. * ``django.template.loaders.cached.Loader.get_template_sources()``
  180. * ``django.template.loaders.filesystem.Loader.get_template_sources()``
  181. * ``django.template.loaders.base.Loader.__call__()`` is removed.
  182. * Support for custom error views that don't accept an ``exception`` parameter
  183. is removed.
  184. * The ``mime_type`` attribute of ``django.utils.feedgenerator.Atom1Feed`` and
  185. ``django.utils.feedgenerator.RssFeed`` is removed.
  186. * The ``app_name`` argument to ``include()`` is removed.
  187. * Support for passing a 3-tuple as the first argument to ``include()`` is
  188. removed.
  189. * Support for setting a URL instance namespace without an application namespace
  190. is removed.
  191. * ``Field._get_val_from_obj()`` is removed.
  192. * ``django.template.loaders.eggs.Loader`` is removed.
  193. * The ``current_app`` parameter to the ``contrib.auth`` function-based views is
  194. removed.
  195. * The ``callable_obj`` keyword argument to
  196. ``SimpleTestCase.assertRaisesMessage()`` is removed.
  197. * Support for the ``allow_tags`` attribute on ``ModelAdmin`` methods is
  198. removed.
  199. * The ``enclosure`` keyword argument to ``SyndicationFeed.add_item()`` is
  200. removed.