mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #14038 -- Added information to release notes and version changed|added markers to documentation additions for the new template loeaders API introduced in version 1.2. Thanks 3point2 for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15309 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5d2ea792ec
commit
f81d4ba5b3
3 changed files with 43 additions and 2 deletions
|
@ -630,8 +630,13 @@ sources.
|
|||
|
||||
Some of these other loaders are disabled by default, but you can activate them
|
||||
by editing your :setting:`TEMPLATE_LOADERS` setting. :setting:`TEMPLATE_LOADERS`
|
||||
should be a tuple of strings, where each string represents a template loader.
|
||||
Here are the template loaders that come with Django:
|
||||
should be a tuple of strings, where each string represents a template loader
|
||||
class. Here are the template loaders that come with Django:
|
||||
|
||||
.. versionchanged:: 1.2
|
||||
Template loaders were based on callables (usually functions) before Django
|
||||
1.2, starting with the 1.2 release there is a new class-based API, all the
|
||||
loaders described below implement this new API.
|
||||
|
||||
``django.template.loaders.filesystem.Loader``
|
||||
Loads templates from the filesystem, according to :setting:`TEMPLATE_DIRS`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue