diff options
| author | Alex de Landgraaf <alex@maykinmedia.nl> | 2014-02-23 15:10:28 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-02-28 16:38:25 -0500 |
| commit | ea869b514846cdd4803e3a87b08686113c14f7f2 (patch) | |
| tree | 36d9a1d0e8325c43274da98465c0f2abb712f598 /docs/ref | |
| parent | cbd04c7c498689382ce56a7b7b31eca5ba98b590 (diff) | |
Fixed #21948 -- Noted TEMPLATE_LOADERS requirement when overriding admin templates.
Thanks django at patjack.co.uk for the suggestion.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 47efa42c16..2c852a3ee4 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -2259,7 +2259,12 @@ 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`. +you specified in :setting:`TEMPLATE_DIRS`. If you have customized the +:setting:`TEMPLATE_LOADERS` setting, 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 +included with :mod:`django.contrib.admin`. Within this ``admin`` directory, create sub-directories named after your app. Within these app subdirectories create sub-directories named after your models. |
