mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #4278 -- Added a dirs parameter to a few functions to override TEMPLATE_DIRS.
* django.template.loader.get_template() * django.template.loader.select_template() * django.shortcuts.render() * django.shortcuts.render_to_response() Thanks amcnabb for the suggestion.
This commit is contained in:
committed by
Tim Graham
parent
893198509e
commit
2f0566fa61
@@ -285,6 +285,14 @@ Templates
|
||||
* ``TypeError`` exceptions are not longer silenced when raised during the
|
||||
rendering of a template.
|
||||
|
||||
* The following functions now accept a ``dirs`` parameter which is a list or
|
||||
tuple to override :setting:`TEMPLATE_DIRS`:
|
||||
|
||||
* :func:`django.template.loader.get_template()`
|
||||
* :func:`django.template.loader.select_template()`
|
||||
* :func:`django.shortcuts.render()`
|
||||
* :func:`django.shortcuts.render_to_response()`
|
||||
|
||||
Tests
|
||||
^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user