aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/utils/staticviews.py
diff options
context:
space:
mode:
authorTom Christie2012-02-20 07:26:34 -0800
committerTom Christie2012-02-20 07:26:34 -0800
commit2fea12c88f22f248381405040fa409e81c9fd4e6 (patch)
tree9632eedaf35cb88c6e59ddd31814ce43ab57f994 /djangorestframework/utils/staticviews.py
parent87a9072b56cfe4f591c25c6c7992553759305600 (diff)
parent50198935af1f772835a3c26943cbb245295c60e5 (diff)
downloaddjango-rest-framework-2fea12c88f22f248381405040fa409e81c9fd4e6.tar.bz2
Merge pull request #168 from poswald/namespace-templates
Namespace templates
Diffstat (limited to 'djangorestframework/utils/staticviews.py')
-rw-r--r--djangorestframework/utils/staticviews.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/utils/staticviews.py b/djangorestframework/utils/staticviews.py
index 9bae0ee7..7cbc0b9b 100644
--- a/djangorestframework/utils/staticviews.py
+++ b/djangorestframework/utils/staticviews.py
@@ -12,7 +12,7 @@ import base64
# be making settings changes in order to accomodate django-rest-framework
@csrf_protect
@never_cache
-def api_login(request, template_name='api_login.html',
+def api_login(request, template_name='djangorestframework/login.html',
redirect_field_name=REDIRECT_FIELD_NAME,
authentication_form=AuthenticationForm):
"""Displays the login form and handles the login action."""
@@ -57,5 +57,5 @@ def api_login(request, template_name='api_login.html',
}, context_instance=RequestContext(request))
-def api_logout(request, next_page=None, template_name='api_login.html', redirect_field_name=REDIRECT_FIELD_NAME):
+def api_logout(request, next_page=None, template_name='djangorestframework/login.html', redirect_field_name=REDIRECT_FIELD_NAME):
return logout(request, next_page, template_name, redirect_field_name)