1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Fixed #500 -- Created a TEMPLATE_FILE_EXTENSION setting that lets you override the default '.html' if you want to use a different extension (or none at all) for templates

git-svn-id: http://code.djangoproject.com/svn/django/trunk@640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2005-09-14 01:24:36 +00:00
parent adaf046591
commit f55f98f989
2 changed files with 4 additions and 3 deletions

View File

@@ -1,10 +1,8 @@
"Wrapper for loading templates from files"
from django.conf.settings import TEMPLATE_DIRS
from django.conf.settings import TEMPLATE_DIRS, TEMPLATE_FILE_EXTENSION
from template import TemplateDoesNotExist
import os
TEMPLATE_FILE_EXTENSION = '.html'
def load_template_source(template_name, template_dirs=None):
if not template_dirs:
template_dirs = TEMPLATE_DIRS