1.10.txt 8.8 KB

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