settings: Add a path for the templates.
[matthijs/projects/dorestad-bookings.git] / settings.py
index f3c0af5f0c210a6f24c96f155f7497cdd226ebaa..dabd33b17d6a2452ca698cb40ae5b0663cab84d6 100644 (file)
@@ -1,5 +1,9 @@
 # Django settings for dorestad1493 project.
 
+import os
+
+PROJECT_DIR = os.path.dirname(__file__)
+
 DEBUG = True
 TEMPLATE_DEBUG = DEBUG
 
@@ -69,11 +73,8 @@ 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(PROJECT_DIR, 'templates'),
 )
 
 INSTALLED_APPS = (
-    'django.contrib.auth',
-    'django.contrib.contenttypes',
-    'django.contrib.sessions',
-    'django.contrib.sites',
 )