maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH 2/4] Adapt template loaders to Django 1.4


From: Thomas Petazzoni
Subject: [Maposmatic-dev] [PATCH 2/4] Adapt template loaders to Django 1.4
Date: Wed, 18 Apr 2012 22:19:20 +0200

In Django 1.4, the function-style template loading is no longer
possible, only the class-style template loading (available since
Django 1.2) is possible.

Signed-off-by: Thomas Petazzoni <address@hidden>
---
 www/settings.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/settings.py b/www/settings.py
index 82add1c..817a84e 100644
--- a/www/settings.py
+++ b/www/settings.py
@@ -74,8 +74,8 @@ SECRET_KEY = 
'tm+wb)lp5q%br=p0d2toz&km_-w)cmcelv!7inons&^v9(q!d2'
 
 # 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',
 )
 
-- 
1.7.5.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]