1.10.txt 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. =============================================
  2. Django 1.10 release notes - UNDER DEVELOPMENT
  3. =============================================
  4. Welcome to Django 1.10!
  5. These release notes cover the `new features`_, as well as some `backwards
  6. incompatible changes`_ you'll want to be aware of when upgrading from Django
  7. 1.9 or older versions. We've :ref:`dropped some features<removed-features-1.10>`
  8. that have reached the end of their deprecation cycle, and we've `begun the
  9. deprecation process for some features`_.
  10. .. _`new features`: `What's new in Django 1.10`_
  11. .. _`backwards incompatible changes`: `Backwards incompatible changes in 1.10`_
  12. .. _`dropped some features`: `Features removed in 1.10`_
  13. .. _`begun the deprecation process for some features`: `Features deprecated in 1.10`_
  14. Python compatibility
  15. ====================
  16. Like Django 1.9, Django 1.10 requires Python 2.7, 3.4, or 3.5. We **highly
  17. recommend** and only officially support the latest release of each series.
  18. What's new in Django 1.10
  19. =========================
  20. ...
  21. Minor features
  22. ~~~~~~~~~~~~~~
  23. :mod:`django.contrib.admin`
  24. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  25. * ...
  26. :mod:`django.contrib.admindocs`
  27. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  28. * ...
  29. :mod:`django.contrib.auth`
  30. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  31. * The default iteration count for the PBKDF2 password hasher has been increased
  32. by 25%. This backwards compatible change will not affect users who have
  33. subclassed ``django.contrib.auth.hashers.PBKDF2PasswordHasher`` to change the
  34. default value.
  35. :mod:`django.contrib.contenttypes`
  36. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  37. * ...
  38. :mod:`django.contrib.gis`
  39. ^^^^^^^^^^^^^^^^^^^^^^^^^^
  40. * ...
  41. :mod:`django.contrib.messages`
  42. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  43. * ...
  44. :mod:`django.contrib.postgres`
  45. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  46. * ...
  47. :mod:`django.contrib.redirects`
  48. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  49. * ...
  50. :mod:`django.contrib.sessions`
  51. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  52. * ...
  53. :mod:`django.contrib.sitemaps`
  54. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  55. * ...
  56. :mod:`django.contrib.sites`
  57. ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  58. * ...
  59. :mod:`django.contrib.staticfiles`
  60. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  61. * ...
  62. :mod:`django.contrib.syndication`
  63. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  64. * ...
  65. Cache
  66. ^^^^^
  67. * ...
  68. CSRF
  69. ^^^^
  70. * ...
  71. Database backends
  72. ^^^^^^^^^^^^^^^^^
  73. * ...
  74. Email
  75. ^^^^^
  76. * ...
  77. File Storage
  78. ^^^^^^^^^^^^
  79. * ...
  80. File Uploads
  81. ^^^^^^^^^^^^
  82. * ...
  83. Forms
  84. ^^^^^
  85. * ...
  86. Generic Views
  87. ^^^^^^^^^^^^^
  88. * ...
  89. Internationalization
  90. ^^^^^^^^^^^^^^^^^^^^
  91. * ...
  92. Management Commands
  93. ^^^^^^^^^^^^^^^^^^^
  94. * ...
  95. Migrations
  96. ^^^^^^^^^^
  97. * ...
  98. Models
  99. ^^^^^^
  100. * ...
  101. Requests and Responses
  102. ^^^^^^^^^^^^^^^^^^^^^^
  103. * ...
  104. Serialization
  105. ^^^^^^^^^^^^^
  106. * The ``django.core.serializers.json.DjangoJSONEncoder`` now knows how to
  107. serialize lazy strings, typically used for translatable content.
  108. Signals
  109. ^^^^^^^
  110. * ...
  111. Templates
  112. ^^^^^^^^^
  113. * ...
  114. Tests
  115. ^^^^^
  116. * ...
  117. URLs
  118. ^^^^
  119. * ...
  120. Validators
  121. ^^^^^^^^^^
  122. * ...
  123. Backwards incompatible changes in 1.10
  124. ======================================
  125. .. warning::
  126. In addition to the changes outlined in this section, be sure to review the
  127. :ref:`removed-features-1.10` for the features that have reached the end of
  128. their deprecation cycle and therefore been removed. If you haven't updated
  129. your code within the deprecation timeline for a given feature, its removal
  130. may appear as a backwards incompatible change.
  131. Database backend API
  132. ~~~~~~~~~~~~~~~~~~~~
  133. * ...
  134. Miscellaneous
  135. ~~~~~~~~~~~~~
  136. * ...
  137. .. _deprecated-features-1.10:
  138. Features deprecated in 1.10
  139. ===========================
  140. Miscellaneous
  141. ~~~~~~~~~~~~~
  142. * ...
  143. .. _removed-features-1.10:
  144. Features removed in 1.10
  145. ========================
  146. These features have reached the end of their deprecation cycle and so have been
  147. removed in Django 1.10 (please see the :ref:`deprecation timeline
  148. <deprecation-removed-in-1.10>` for more details):
  149. * Support for calling a ``SQLCompiler`` directly as an alias for calling its
  150. ``quote_name_unless_alias`` method is removed.
  151. * The ``cycle`` and ``firstof`` template tags are removed from the ``future``
  152. template tag library.
  153. * ``django.conf.urls.patterns()`` is removed.
  154. * Support for the ``prefix`` argument to
  155. ``django.conf.urls.i18n.i18n_patterns()`` is removed.
  156. * ``SimpleTestCase.urls`` is removed.
  157. * Using an incorrect count of unpacked values in the ``for`` template tag
  158. raises an exception rather than failing silently.
  159. * The ability to :func:`~django.core.urlresolvers.reverse` URLs using a dotted
  160. Python path is removed.
  161. * Support for ``optparse`` is dropped for custom management commands.
  162. * The class ``django.core.management.NoArgsCommand`` is removed.
  163. * ``django.core.context_processors`` module is removed.
  164. * ``django.db.models.sql.aggregates`` module is removed.
  165. * ``django.contrib.gis.db.models.sql.aggregates`` module is removed.
  166. * The following methods and properties of ``django.db.sql.query.Query`` are
  167. removed:
  168. * Properties: ``aggregates`` and ``aggregate_select``
  169. * Methods: ``add_aggregate``, ``set_aggregate_mask``, and
  170. ``append_aggregate_mask``.
  171. * ``django.template.resolve_variable`` is removed.
  172. * The following private APIs are removed from
  173. :class:`django.db.models.options.Options` (``Model._meta``):
  174. * ``get_field_by_name()``
  175. * ``get_all_field_names()``
  176. * ``get_fields_with_model()``
  177. * ``get_concrete_fields_with_model()``
  178. * ``get_m2m_with_model()``
  179. * ``get_all_related_objects()``
  180. * ``get_all_related_objects_with_model()``
  181. * ``get_all_related_many_to_many_objects()``
  182. * ``get_all_related_m2m_objects_with_model()``
  183. * The ``error_message`` argument of ``django.forms.RegexField`` is removed.
  184. * The ``unordered_list`` filter no longer supports old style lists.
  185. * Support for string ``view`` arguments to ``url()`` is removed.
  186. * The backward compatible shim to rename ``django.forms.Form._has_changed()``
  187. to ``has_changed()`` is removed.
  188. * The ``removetags`` template filter is removed.
  189. * The ``remove_tags()`` and ``strip_entities()`` functions in
  190. ``django.utils.html`` is removed.
  191. * The ``is_admin_site`` argument to
  192. ``django.contrib.auth.views.password_reset()`` is removed.
  193. * ``django.db.models.field.subclassing.SubfieldBase`` is removed.
  194. * ``django.utils.checksums`` is removed.
  195. * The ``original_content_type_id`` attribute on
  196. ``django.contrib.admin.helpers.InlineAdminForm`` is removed.
  197. * The backwards compatibility shim to allow ``FormMixin.get_form()`` to be
  198. defined with no default value for its ``form_class`` argument is removed.
  199. * The following settings are removed:
  200. * ``ALLOWED_INCLUDE_ROOTS``
  201. * ``TEMPLATE_CONTEXT_PROCESSORS``
  202. * ``TEMPLATE_DEBUG``
  203. * ``TEMPLATE_DIRS``
  204. * ``TEMPLATE_LOADERS``
  205. * ``TEMPLATE_STRING_IF_INVALID``
  206. * The backwards compatibility alias ``django.template.loader.BaseLoader`` is
  207. removed.
  208. * Django template objects returned by
  209. :func:`~django.template.loader.get_template` and
  210. :func:`~django.template.loader.select_template` no longer accept a
  211. :class:`~django.template.Context` in their
  212. :meth:`~django.template.backends.base.Template.render()` method.
  213. * :doc:`Template response APIs </ref/template-response>` enforce the use of
  214. :class:`dict` and backend-dependent template objects instead of
  215. :class:`~django.template.Context` and :class:`~django.template.Template`
  216. respectively.
  217. * The ``current_app`` parameter for the following function and classes is
  218. removed:
  219. * ``django.shortcuts.render()``
  220. * ``django.template.Context()``
  221. * ``django.template.RequestContext()``
  222. * ``django.template.response.TemplateResponse()``
  223. * The ``dictionary`` and ``context_instance`` parameters for the following
  224. functions are removed:
  225. * ``django.shortcuts.render()``
  226. * ``django.shortcuts.render_to_response()``
  227. * ``django.template.loader.render_to_string()``
  228. * The ``dirs`` parameter for the following functions is removed:
  229. * ``django.template.loader.get_template()``
  230. * ``django.template.loader.select_template()``
  231. * ``django.shortcuts.render()``
  232. * ``django.shortcuts.render_to_response()``
  233. * Session verification is enabled regardless of whether or not
  234. ``'django.contrib.auth.middleware.SessionAuthenticationMiddleware'`` is in
  235. ``MIDDLEWARE_CLASSES``. ``SessionAuthenticationMiddleware`` no longer has
  236. any purpose and can be removed from ``MIDDLEWARE_CLASSES``. It's kept as
  237. a stub until Django 2.0 as a courtesy for users who don't read this note.
  238. * Private attribute ``django.db.models.Field.related`` is removed.
  239. * The ``--list`` option of the ``migrate`` management command is removed.
  240. * The ``ssi`` template tag is removed.
  241. * Support for the ``=`` comparison operator in the ``if`` template tag is
  242. removed.
  243. * The backwards compatibility shims to allow ``Storage.get_available_name()``
  244. and ``Storage.save()`` to be defined without a ``max_length`` argument are
  245. removed.
  246. * Support for the legacy ``%(<foo>)s`` syntax in ``ModelFormMixin.success_url``
  247. is removed.
  248. * ``GeoQuerySet`` aggregate methods ``collect()``, ``extent()``, ``extent3d()``,
  249. ``make_line()``, and ``unionagg()`` are removed.
  250. * The ability to specify ``ContentType.name`` when creating a content type
  251. instance is removed.
  252. * Support for the old signature of ``allow_migrate`` is removed.
  253. * Support for the syntax of ``{% cycle %}`` that uses comma-separated arguments
  254. is removed.
  255. * The warning that :class:`~django.core.signing.Signer` issued when given an
  256. invalid separator is now a ``ValueError``.