We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 12cab1a + fa9de26 commit 91c6d08Copy full SHA for 91c6d08
pythonkc_site/settings.py
@@ -2,6 +2,8 @@
2
3
import os
4
5
+PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
6
+
7
DEBUG = True
8
TEMPLATE_DEBUG = DEBUG
9
@@ -105,7 +107,7 @@
105
107
ROOT_URLCONF = 'pythonkc_site.urls'
106
108
109
TEMPLATE_DIRS = (
- os.path.join(os.path.abspath(os.path.dirname(__file__)), 'templates'),
110
+ os.path.join(PROJECT_ROOT, 'templates'),
111
# Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
112
# Always use forward slashes, even on Windows.
113
# Don't forget to use absolute paths, not relative paths.
0 commit comments