Browse files

Fixed #21948 -- Noted TEMPLATE_LOADERS requirement when overriding ad…

…min templates.

Thanks django at for the suggestion.
  • Loading branch information...
1 parent cbd04c7 commit ea869b514846cdd4803e3a87b08686113c14f7f2 Alex de Landgraaf committed with timgraham Feb 23, 2014
Showing with 6 additions and 1 deletion.
  1. +6 −1 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.

0 comments on commit ea869b5

Please sign in to comment.