summaryrefslogtreecommitdiff
path: root/django/template/loaders/filesystem.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-04-15 16:46:54 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-04-15 16:46:54 +0000
commit6442fd27bcf116d62ba5108436a28a3ed4df95e5 (patch)
treef009cbf6b31afe163e01d3e75f614427ea7f6100 /django/template/loaders/filesystem.py
parent39d42d48618efbb5e5176a8b65b635a84bed45a5 (diff)
magic-removal: Fixed #500 -- Removed TEMPLATE_FILE_EXTENSION setting so that template loading requires you to give the full filename, including extension. This applies everywhere, even in the 'extends' and 'include' template tags.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2700 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/template/loaders/filesystem.py')
-rw-r--r--django/template/loaders/filesystem.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/loaders/filesystem.py b/django/template/loaders/filesystem.py
index ee34c6c715..0c94021fb8 100644
--- a/django/template/loaders/filesystem.py
+++ b/django/template/loaders/filesystem.py
@@ -8,7 +8,7 @@ def get_template_sources(template_name, template_dirs=None):
if not template_dirs:
template_dirs = settings.TEMPLATE_DIRS
for template_dir in template_dirs:
- yield os.path.join(template_dir, template_name) + settings.TEMPLATE_FILE_EXTENSION
+ yield os.path.join(template_dir, template_name)
def load_template_source(template_name, template_dirs=None):
tried = []