aboutsummaryrefslogtreecommitdiffstats
path: root/examples/settings.py
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-01-27 21:09:25 +0000
committertom christie tom@tomchristie.com2011-01-27 21:09:25 +0000
commit216baa551fdce6394aa640ee0806c79b38658daf (patch)
tree9d97c1f37e029b87df6e6f7eb5a617727cae37ae /examples/settings.py
parente227c38b330988d71087759d13303215561808c6 (diff)
downloaddjango-rest-framework-216baa551fdce6394aa640ee0806c79b38658daf.tar.bz2
Login/Logout and FlyWheel API link in HTML emitter
Diffstat (limited to 'examples/settings.py')
-rw-r--r--examples/settings.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/settings.py b/examples/settings.py
index f85e75f1..ea97d192 100644
--- a/examples/settings.py
+++ b/examples/settings.py
@@ -1,4 +1,7 @@
# Django settings for src project.
+import os
+
+BASE_DIR = os.path.dirname(__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(BASE_DIR, 'templates')
)
INSTALLED_APPS = (