[PATCH] settings: Make sure to use a tuple for TEMPLATE_DIRS

Damien Lespiau damien.lespiau at intel.com
Fri Sep 5 09:57:37 EST 2014


Django 1.7 has added a check to make sure TEMPLATE_DIRS is a tuple. We
were missing a ',', the key piece to define a tuple with one element.

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 apps/settings.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/settings.py b/apps/settings.py
index 3579ab7..e663c48 100644
--- a/apps/settings.py
+++ b/apps/settings.py
@@ -73,7 +73,7 @@ TEMPLATE_DIRS = (
     # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
     # Always use forward slashes, even on Windows.
     # Don't forget to use absolute paths, not relative paths.
-    os.path.join(ROOT_DIR, 'templates')
+    os.path.join(ROOT_DIR, 'templates'),
 )
 # Absolute path to the directory that holds media.
 # Example: "/home/media/media.lawrence.com/"
-- 
1.8.3.1



More information about the Patchwork mailing list