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 = (