Kaydet (Commit) b4f5e80c authored tarafından Gary Wilson Jr's avatar Gary Wilson Jr

Added a few Sphinx directives to the form API and template API docs.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@11984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst ac6273d6
This diff is collapsed.
......@@ -502,12 +502,14 @@ The Python API
Django has two ways to load templates from files:
``django.template.loader.get_template(template_name)``
.. function:: django.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.template.TemplateDoesNotExist``.
``django.template.loader.select_template(template_name_list)``
.. function:: django.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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment