mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #27829 -- Deprecated settings.DEFAULT_CONTENT_TYPE.
This commit is contained in:
parent
b008f7cc56
commit
80493b0871
6 changed files with 62 additions and 17 deletions
|
@ -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
|
||||
|
|
|
@ -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``
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue