aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/settings.py4
-rw-r--r--examples/urls.py2
2 files changed, 6 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 = (
diff --git a/examples/urls.py b/examples/urls.py
index ef55e2b5..5e308f00 100644
--- a/examples/urls.py
+++ b/examples/urls.py
@@ -7,6 +7,8 @@ urlpatterns = patterns('',
(r'pygments-example/', include('pygments_api.urls')),
(r'^blog-post-example/', include('blogpost.urls')),
(r'^object-store-example/', include('objectstore.urls')),
+ (r'^accounts/login/$', 'django.contrib.auth.views.login'),
+ (r'^accounts/logout/$', 'django.contrib.auth.views.logout'),
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
(r'^admin/', include(admin.site.urls)),
)