]> git.ozlabs.org Git - patchwork/commitdiff
settings: Make sure to use a tuple for TEMPLATE_DIRS
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 4 Sep 2014 23:57:37 +0000 (00:57 +0100)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 7 Sep 2014 12:07:42 +0000 (20:07 +0800)
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@intel.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/settings.py

index 3579ab7b06b116d510324b670870b493e0b38622..e663c48cc50426d818bf71b66c4c62129db0d38d 100644 (file)
@@ -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/"