From: Jeremy Kerr Date: Sun, 17 Jun 2012 07:36:41 +0000 (+0800) Subject: settings: Use class-based template loading API X-Git-Url: https://git.ozlabs.org/?p=patchwork;a=commitdiff_plain;h=e5dbc3283ce9b3ea817339cc0ec3056f04fbf897 settings: Use class-based template loading API The TEMPLATE_LOADERS setting changed in django-1.2. Template loaders are now based on calsses rather than callables. Signed-off-by: Jeremy Kerr --- diff --git a/apps/settings.py b/apps/settings.py index 7523099..b8026a5 100644 --- a/apps/settings.py +++ b/apps/settings.py @@ -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', )