Skip to content

Commit 91c6d08

Browse files
author
Julia Elman
committed
Merge branch 'master' of github.com:pythonkc/pythonkc.com
2 parents 12cab1a + fa9de26 commit 91c6d08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pythonkc_site/settings.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import os
44

5+
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
6+
57
DEBUG = True
68
TEMPLATE_DEBUG = DEBUG
79

@@ -105,7 +107,7 @@
105107
ROOT_URLCONF = 'pythonkc_site.urls'
106108

107109
TEMPLATE_DIRS = (
108-
os.path.join(os.path.abspath(os.path.dirname(__file__)), 'templates'),
110+
os.path.join(PROJECT_ROOT, 'templates'),
109111
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
110112
# Always use forward slashes, even on Windows.
111113
# Don't forget to use absolute paths, not relative paths.

0 commit comments

Comments
 (0)