From 67dcadf7f6b9cc212ed6905fe1df99ef6f05bbad Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Mon, 18 Oct 2010 12:36:00 +0200 Subject: [PATCH] settings: Add a path for the templates. --- settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/settings.py b/settings.py index 5f3fcbd..dabd33b 100644 --- a/settings.py +++ b/settings.py @@ -1,5 +1,9 @@ # Django settings for dorestad1493 project. +import os + +PROJECT_DIR = os.path.dirname(__file__) + DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -69,6 +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(PROJECT_DIR, 'templates'), ) INSTALLED_APPS = ( -- 2.30.2