Skip to content

Commit

Permalink
Removed obsolete comment.
Browse files Browse the repository at this point in the history
It didn't account for class-based template loaders.
  • Loading branch information
aaugustin committed Nov 16, 2014
1 parent b503fee commit 0bf9919
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions django/template/loader.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 0bf9919

Please sign in to comment.