Fixed #27829 -- Deprecated settings.DEFAULT_CONTENT_TYPE.

This commit is contained in:
Tim Graham 2017-02-16 07:59:44 -05:00 committed by GitHub
parent b008f7cc56
commit 80493b0871
6 changed files with 62 additions and 17 deletions

View file

@ -19,6 +19,8 @@ details on these changes.
* ``django.shortcuts.render_to_response()`` will be removed.
* The ``DEFAULT_CONTENT_TYPE`` setting will be removed.
.. _deprecation-removed-in-2.1:
2.1

View file

@ -1140,6 +1140,11 @@ Default content type to use for all ``HttpResponse`` objects, if a MIME type
isn't manually specified. Used with :setting:`DEFAULT_CHARSET` to construct
the ``Content-Type`` header.
.. deprecated:: 2.0
This setting is deprecated because it doesn't interact well with
third-party apps and is obsolete since HTML5 has mostly superseded XHTML.
.. setting:: DEFAULT_EXCEPTION_REPORTER_FILTER
``DEFAULT_EXCEPTION_REPORTER_FILTER``

View file

@ -301,6 +301,10 @@ Miscellaneous
:func:`django.shortcuts.render`. ``render()`` takes the same arguments
except that is also requires a ``request``.
* The ``DEFAULT_CONTENT_TYPE`` setting is deprecated. It doesn't interact well
well with third-party apps and is obsolete since HTML5 has mostly superseded
XHTML.
.. _removed-features-2.0:
Features removed in 2.0