diff options
Diffstat (limited to 'codemash/settings.py')
-rw-r--r-- | codemash/settings.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/codemash/settings.py b/codemash/settings.py index 0e609fd..3bf0f6a 100644 --- a/codemash/settings.py +++ b/codemash/settings.py | |||
@@ -1,5 +1,7 @@ | |||
1 | # Django settings for codemash project. | 1 | # Django settings for codemash project. |
2 | 2 | ||
3 | import os | ||
4 | |||
3 | DEBUG = True | 5 | DEBUG = True |
4 | TEMPLATE_DEBUG = DEBUG | 6 | TEMPLATE_DEBUG = DEBUG |
5 | 7 | ||
@@ -21,6 +23,8 @@ DATABASES = { | |||
21 | } | 23 | } |
22 | } | 24 | } |
23 | 25 | ||
26 | PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) | ||
27 | |||
24 | # Local time zone for this installation. Choices can be found here: | 28 | # Local time zone for this installation. Choices can be found here: |
25 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name | 29 | # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name |
26 | # although not all choices may be available on all operating systems. | 30 | # although not all choices may be available on all operating systems. |
@@ -107,6 +111,7 @@ TEMPLATE_DIRS = ( | |||
107 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". | 111 | # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". |
108 | # Always use forward slashes, even on Windows. | 112 | # Always use forward slashes, even on Windows. |
109 | # Don't forget to use absolute paths, not relative paths. | 113 | # Don't forget to use absolute paths, not relative paths. |
114 | os.path.join(PROJECT_ROOT, "templates"), | ||
110 | ) | 115 | ) |
111 | 116 | ||
112 | INSTALLED_APPS = ( | 117 | INSTALLED_APPS = ( |