diff options
author | Kyle McFarland <tfkyle@gmail.com> | 2018-10-17 22:37:42 -0600 |
---|---|---|
committer | Kyle McFarland <tfkyle@gmail.com> | 2018-10-17 22:37:42 -0600 |
commit | bfdc219f139bf9645f29b95bf4cc7824138f87b7 (patch) | |
tree | 8659bb8c7202745088b521222e104dcbad4e1417 /coding_assignment_project/settings.py | |
parent | 26583fc40fe1a63fd96f262ea37a214815d1a22e (diff) | |
download | coding-assignment-bfdc219f139bf9645f29b95bf4cc7824138f87b7.zip coding-assignment-bfdc219f139bf9645f29b95bf4cc7824138f87b7.tar.gz coding-assignment-bfdc219f139bf9645f29b95bf4cc7824138f87b7.tar.bz2 |
settings.py: Use BASE_DIR in template directories
Previously environments where the cwd wasn't the project root would
except looking for base.html using a relative path, this fixes that to
use an absolute path instead. (fixes running with apache + mod_wsgi)
Diffstat (limited to 'coding_assignment_project/settings.py')
-rw-r--r-- | coding_assignment_project/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coding_assignment_project/settings.py b/coding_assignment_project/settings.py index 9afeb50..3d44c83 100644 --- a/coding_assignment_project/settings.py +++ b/coding_assignment_project/settings.py @@ -56,7 +56,7 @@ ROOT_URLCONF = 'coding_assignment_project.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': ['coding_assignment_project/templates'], + 'DIRS': [os.path.join(BASE_DIR, 'coding_assignment_project', 'templates')], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ |