From 4a30e0aeb9b9fc7d29cb574ae837afe429da6e20 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 30 Oct 2014 19:01:20 -0400 Subject: [PATCH] [1.6.x] Fixed #23735 -- Clarified that admindocs must be enabled to view template tag libraries in admin. Thanks Aymeric Augustin for the report. Backport of 19242c675f from master --- docs/topics/templates.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/topics/templates.txt b/docs/topics/templates.txt index a5ac5cd996..6c2cb59780 100644 --- a/docs/topics/templates.txt +++ b/docs/topics/templates.txt @@ -657,15 +657,18 @@ Custom tag and filter libraries =============================== Certain applications provide custom tag and filter libraries. To access them in -a template, use the :ttag:`load` tag:: +a template, ensure the application is in :setting:`INSTALLED_APPS` (we'd add +``'django.contrib.humanize'`` for this example), and then use the :ttag:`load` +tag in a template:: {% load humanize %} {{ 45000|intcomma }} In the above, the :ttag:`load` tag loads the ``humanize`` tag library, which then -makes the ``intcomma`` filter available for use. Consult the documentation -area in your admin to find the list of custom libraries in your installation. +makes the ``intcomma`` filter available for use. If you've enabled +:mod:`django.contrib.admindocs`, you can consult the documentation area in your +admin to find the list of custom libraries in your installation. The :ttag:`load` tag can take multiple library names, separated by spaces. Example::