summaryrefslogtreecommitdiff
path: root/settings.py
diff options
context:
space:
mode:
authorJohannes Raggam <raggam-nl@adm.at>2011-03-13 19:07:26 (GMT)
committerJohannes Raggam <raggam-nl@adm.at>2011-03-13 19:07:26 (GMT)
commit5a39ae336f3772d9770b0f62399e3b5d50ab3642 (patch)
tree3b0391c7e0bf310eae67609929054d42c584987c /settings.py
parent1ea3eeb4c99a365a38bf3b64605f91ac0dfea788 (diff)
dynamically calculated absolute path to template directory
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/settings.py b/settings.py
index 6fba2cd..4b224da 100644
--- a/settings.py
+++ b/settings.py
@@ -1,3 +1,5 @@
+import os
+
# Django settings for helsinki project.
DEBUG = True
@@ -62,7 +64,9 @@ MIDDLEWARE_CLASSES = (
ROOT_URLCONF = 'helsinki.urls'
-TEMPLATE_DIRS = ('templates',)
+TEMPLATE_DIRS = (
+ os.path.join(os.path.dirname(__file__), "templates"),
+)
INSTALLED_APPS = (
'django.contrib.auth',