summaryrefslogtreecommitdiff
path: root/django/conf/project_template
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-10-17 02:37:50 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-10-17 02:37:50 +0000
commit57b4f231fdc24dcb41a503c3314442ff5250a830 (patch)
treef2156155788e40698742a9895902a1b6b4c7856c /django/conf/project_template
parentb9736c5c633fe0bd2e1aeda2b9e0a99257175e33 (diff)
Fixed #583 -- Added app_directories template loader, which searches for templates in 'templates' directory in each INSTALLED_APPS package. It's turned off by default.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@892 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/conf/project_template')
-rw-r--r--django/conf/project_template/settings/main.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/django/conf/project_template/settings/main.py b/django/conf/project_template/settings/main.py
index cbb32b7920..1bde7df10a 100644
--- a/django/conf/project_template/settings/main.py
+++ b/django/conf/project_template/settings/main.py
@@ -30,6 +30,13 @@ MEDIA_URL = ''
# Make this unique, and don't share it with anybody.
SECRET_KEY = ''
+# List of callables that know how to import templates from various sources.
+TEMPLATE_LOADERS = (
+# 'django.core.template.loaders.app_directories.load_template_source',
+ 'django.core.template.loaders.filesystem.load_template_source',
+# 'django.core.template.loaders.eggs.load_template_source',
+)
+
MIDDLEWARE_CLASSES = (
"django.middleware.common.CommonMiddleware",
"django.middleware.doc.XViewMiddleware",