]> git.ozlabs.org Git - patchwork/commitdiff
settings: Use class-based template loading API
authorJeremy Kerr <jk@ozlabs.org>
Sun, 17 Jun 2012 07:36:41 +0000 (15:36 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 8 Oct 2012 01:40:53 +0000 (09:40 +0800)
The TEMPLATE_LOADERS setting changed in django-1.2. Template loaders are
now based on calsses rather than callables.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/settings.py

index 3d929bc32a60bf0b5a6f07a671a6992556810a4e..cf4094110627c3c64ea9ec8ff50eeaa47ffe0828 100644 (file)
@@ -49,8 +49,8 @@ SECRET_KEY = '00000000000000000000000000000000000000000000000000'
 
 # List of callables that know how to import templates from various sources.
 TEMPLATE_LOADERS = (
-    'django.template.loaders.filesystem.load_template_source',
-    'django.template.loaders.app_directories.load_template_source',
+    'django.template.loaders.filesystem.Loader',
+    'django.template.loaders.app_directories.Loader',
 #     'django.template.loaders.eggs.load_template_source',
 )