aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework/urls.py')
-rw-r--r--djangorestframework/urls.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/djangorestframework/urls.py b/djangorestframework/urls.py
index 5c797bcd..3fa813ea 100644
--- a/djangorestframework/urls.py
+++ b/djangorestframework/urls.py
@@ -1,6 +1,9 @@
-from django.conf.urls.defaults import patterns
+from django.conf.urls.defaults import patterns, url
-urlpatterns = patterns('djangorestframework.utils.staticviews',
- (r'^accounts/login/$', 'api_login'),
- (r'^accounts/logout/$', 'api_logout'),
+
+template_name = {'template_name': 'djangorestframework/login.html'}
+
+urlpatterns = patterns('django.contrib.auth.views',
+ url(r'^login/$', 'login', template_name, name='login'),
+ url(r'^logout/$', 'logout', template_name, name='logout'),
)