summaryrefslogtreecommitdiff
path: root/docs/templates_python.txt
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2005-10-14 21:33:45 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2005-10-14 21:33:45 +0000
commit2a2e2fb6aa7f46a7ada2a320c775a315045f8b83 (patch)
tree1c00ef17cc6d0f09b4559375705f3fba1e2887da /docs/templates_python.txt
parent2ffca1711ddd58ce0457bbf972a25402b746b73b (diff)
parent083b4f9001f3968138c4d0c34ab741cf7be97f43 (diff)
i18n: merged up to r868
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@869 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/templates_python.txt')
-rw-r--r--docs/templates_python.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/templates_python.txt b/docs/templates_python.txt
index 39b768429b..bd8aea62c7 100644
--- a/docs/templates_python.txt
+++ b/docs/templates_python.txt
@@ -307,12 +307,12 @@ The Python API
Django has two ways to load templates from files:
-``django.core.template_loader.get_template(template_name)``
+``django.core.template.loader.get_template(template_name)``
``get_template`` returns the compiled template (a ``Template`` object) for
the template with the given name. If the template doesn't exist, it raises
``django.core.template.TemplateDoesNotExist``.
-``django.core.template_loader.select_template(template_name_list)``
+``django.core.template.loader.select_template(template_name_list)``
``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.
@@ -398,8 +398,8 @@ Python code, depending on whether you're writing filters or tags.
.. admonition:: Behind the scenes
For a ton of examples, read the source code for Django's default filters
- and tags. They're in ``django/core/defaultfilters.py`` and
- ``django/core/defaulttags.py``, respectively.
+ and tags. They're in ``django/core/template/defaultfilters.py`` and
+ ``django/core/template/defaulttags.py``, respectively.
Writing custom template filters
-------------------------------
@@ -710,4 +710,4 @@ The only new concept here is the ``self.nodelist.render(context)`` in
For more examples of complex rendering, see the source code for ``{% if %}``,
``{% for %}``, ``{% ifequal %}`` and ``{% ifchanged %}``. They live in
-``django/core/defaulttags.py``.
+``django/core/template/defaulttags.py``.