From 6e9dd89fc00a89bd39bc945c5491257a2f61491a Mon Sep 17 00:00:00 2001 From: Hidden Z Date: Wed, 6 Oct 2010 19:02:08 +0000 Subject: [PATCH] settings.py: add some templates into TEMPLATE_DIRS --- web/settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/settings.py b/web/settings.py index fef96d9..ab3abee 100644 --- a/web/settings.py +++ b/web/settings.py @@ -1,5 +1,8 @@ # Django settings for web project. +import os +PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) + DEBUG = True TEMPLATE_DEBUG = DEBUG @@ -81,6 +84,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_ROOT, 'templates/'), ) INSTALLED_APPS = (