Commit 94e2d391 authored by Tim Graham's avatar Tim Graham
Browse files

Added deprecation of template dirs parameter to timeline.

parent 8bb9e7c9
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -88,6 +88,13 @@ details on these changes.
* The backwards compatibility alias ``django.template.loader.BaseLoader`` will
  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:

1.9
+5 −2
Original line number Diff line number Diff line
@@ -1058,14 +1058,17 @@ now optional.
``dirs`` argument of template-finding functions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The following functions no longer accept a ``dirs`` parameter to override
:setting:`TEMPLATE_DIRS`:
The following functions will no longer accept a ``dirs`` parameter to override
:setting:`TEMPLATE_DIRS` in Django 2.0:

* :func:`django.template.loader.get_template()`
* :func:`django.template.loader.select_template()`
* :func:`django.shortcuts.render()`
* :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``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~