summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-11-13 20:25:08 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-11-23 09:29:33 +0100
commit17012b6936128fb771b98e4fa6d78caddd07a9a8 (patch)
treeb662345113691bc30944eec4f12a39400cec908b /docs/ref
parentbcb693ebd4d3743cb194c6fd05b2d70fb9696a4c (diff)
Deprecated dirs argument to override TEMPLATE_DIRS.
Cancels 2f0566fa. Refs #4278.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/templates/api.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index 834e57e006..c86b7873ae 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -659,25 +659,27 @@ The Python API
the template with the given name. If the template doesn't exist, it raises
``django.template.TemplateDoesNotExist``.
- To override the :setting:`TEMPLATE_DIRS` setting, use the ``dirs``
- parameter. The ``dirs`` parameter may be a tuple or list.
-
.. versionchanged:: 1.7
The ``dirs`` parameter was added.
+ .. versionchanged:: 1.8
+
+ The ``dirs`` parameter was deprecated.
+
.. function:: select_template(template_name_list[, dirs])
``select_template`` is just like ``get_template``, except it takes a list
of template names. Of the list, it returns the first template that exists.
- To override the :setting:`TEMPLATE_DIRS` setting, use the ``dirs``
- parameter. The ``dirs`` parameter may be a tuple or list.
-
.. versionchanged:: 1.7
The ``dirs`` parameter was added.
+ .. versionchanged:: 1.8
+
+ The ``dirs`` parameter was deprecated.
+
For example, if you call ``get_template('story_detail.html')`` and have the
above :setting:`TEMPLATE_DIRS` setting, here are the files Django will look for,
in order: