mirror of https://github.com/django/django.git
Added deprecation of template dirs parameter to timeline.
This commit is contained in:
parent
8bb9e7c999
commit
94e2d3913d
|
@ -88,6 +88,13 @@ details on these changes.
|
||||||
* The backwards compatibility alias ``django.template.loader.BaseLoader`` will
|
* The backwards compatibility alias ``django.template.loader.BaseLoader`` will
|
||||||
be removed.
|
be removed.
|
||||||
|
|
||||||
|
* The ``dirs`` parameter for the following functions will be removed:
|
||||||
|
|
||||||
|
* ``django.template.loader.get_template()``
|
||||||
|
* ``django.template.loader.select_template()``
|
||||||
|
* ``django.shortcuts.render()``
|
||||||
|
* ``django.shortcuts.render_to_response()``
|
||||||
|
|
||||||
.. _deprecation-removed-in-1.9:
|
.. _deprecation-removed-in-1.9:
|
||||||
|
|
||||||
1.9
|
1.9
|
||||||
|
|
|
@ -1058,14 +1058,17 @@ now optional.
|
||||||
``dirs`` argument of template-finding functions
|
``dirs`` argument of template-finding functions
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
The following functions no longer accept a ``dirs`` parameter to override
|
The following functions will no longer accept a ``dirs`` parameter to override
|
||||||
:setting:`TEMPLATE_DIRS`:
|
:setting:`TEMPLATE_DIRS` in Django 2.0:
|
||||||
|
|
||||||
* :func:`django.template.loader.get_template()`
|
* :func:`django.template.loader.get_template()`
|
||||||
* :func:`django.template.loader.select_template()`
|
* :func:`django.template.loader.select_template()`
|
||||||
* :func:`django.shortcuts.render()`
|
* :func:`django.shortcuts.render()`
|
||||||
* :func:`django.shortcuts.render_to_response()`
|
* :func:`django.shortcuts.render_to_response()`
|
||||||
|
|
||||||
|
The parameter didn't work consistently across different template loaders and
|
||||||
|
didn't work for included templates.
|
||||||
|
|
||||||
``django.template.loader.BaseLoader``
|
``django.template.loader.BaseLoader``
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue