mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Deprecated TEMPLATE_LOADERS.
This commit is contained in:
parent
d3a982556d
commit
cf0fd65ed4
21 changed files with 315 additions and 226 deletions
|
@ -2337,8 +2337,9 @@ directory.
|
|||
|
||||
In order to override one or more of them, first create an ``admin`` directory
|
||||
in your project's ``templates`` directory. This can be any of the directories
|
||||
you specified in :setting:`TEMPLATE_DIRS`. If you have customized the
|
||||
:setting:`TEMPLATE_LOADERS` setting, be sure
|
||||
you specified in the :setting:`DIRS <TEMPLATES-DIRS>` option of the
|
||||
``DjangoTemplates`` backend in the :setting:`TEMPLATES` setting. If you have
|
||||
customized the ``'loaders'`` option, be sure
|
||||
``'django.template.loaders.filesystem.Loader'`` appears before
|
||||
``'django.template.loaders.app_directories.Loader'`` so that your custom
|
||||
templates will be found by the template loading system before those that are
|
||||
|
|
|
@ -34,9 +34,9 @@ To install the sitemap app, follow these steps:
|
|||
1. Add ``'django.contrib.sitemaps'`` to your :setting:`INSTALLED_APPS`
|
||||
setting.
|
||||
|
||||
2. Make sure ``'django.template.loaders.app_directories.Loader'``
|
||||
is in your :setting:`TEMPLATE_LOADERS` setting. It's in there by default,
|
||||
so you'll only need to change this if you've changed that setting.
|
||||
2. Make sure your :setting:`TEMPLATES` setting contains a ``DjangoTemplates``
|
||||
backend whose ``APP_DIRS`` options is set to ``True``. It's in there by
|
||||
default, so you'll only need to change this if you've changed that setting.
|
||||
|
||||
3. Make sure you've installed the
|
||||
:mod:`sites framework <django.contrib.sites>`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue