summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-11-15 19:55:16 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-11-16 21:40:54 +0100
commit0bf99193f88238aea0a12970503a7b5dceb206ec (patch)
treed4a421c9d1a7502882414d89541d583af8d874cd
parentb503fee7ec03485bf7172a6a85ca7228847705de (diff)
Removed obsolete comment.
It didn't account for class-based template loaders.
-rw-r--r--django/template/loader.py27
1 files changed, 0 insertions, 27 deletions
diff --git a/django/template/loader.py b/django/template/loader.py
index e341b5fcb9..3fe4773894 100644
--- a/django/template/loader.py
+++ b/django/template/loader.py
@@ -1,30 +1,3 @@
-# Wrapper for loading templates from storage of some sort (e.g. filesystem, database).
-#
-# This uses the TEMPLATE_LOADERS setting, which is a list of loaders to use.
-# Each loader is expected to have this interface:
-#
-# callable(name, dirs=[])
-#
-# name is the template name.
-# dirs is an optional list of directories to search instead of TEMPLATE_DIRS.
-#
-# The loader should return a tuple of (template_source, path). The path returned
-# might be shown to the user for debugging purposes, so it should identify where
-# the template was loaded from.
-#
-# A loader may return an already-compiled template instead of the actual
-# template source. In that case the path returned should be None, since the
-# path information is associated with the template during the compilation,
-# which has already been done.
-#
-# Each loader should have an "is_usable" attribute set. This is a boolean that
-# specifies whether the loader can be used in this Python installation. Each
-# loader is responsible for setting this when it's initialized.
-#
-# For example, the eggs loader (which is capable of loading templates from
-# Python eggs) sets is_usable to False if the "pkg_resources" module isn't
-# installed, because pkg_resources is necessary to read eggs.
-
import warnings
from django.core.exceptions import ImproperlyConfigured