* Add a BASE_DIR setting, that gets filled based on __file__.
[matthijs/projects/xerxes.git] / settings.py
index bef6aa8e11d3730ab9c7d5bbef722ddd487d2fc5..ba3582d320d897fbe6efcfa3e3004da143b456fa 100644 (file)
@@ -1,6 +1,9 @@
 # Django settings for ee project.
 
 from dbsettings import *
+import os
+
+PROJECT_DIR = os.path.dirname(__file__)
 
 DEBUG = True
 TEMPLATE_DEBUG = DEBUG
@@ -78,7 +81,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.
-    '/home/matthijs/docs/src/django/ee/templates',
+    os.path.join(PROJECT_DIR, 'templates'),
 )
 
 INSTALLED_APPS = (