diff options
| author | Tom Christie | 2012-02-21 22:50:41 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-02-21 22:50:41 +0000 |
| commit | 66eabe8bd1a539f92c3d677565d69edc29a1721b (patch) | |
| tree | 60c5d2f5cdba605e73545ae21d94fcf809a39788 /djangorestframework/urls.py | |
| parent | b074754b54adf172cd2d102e2a326a7f322cf2ef (diff) | |
| download | django-rest-framework-66eabe8bd1a539f92c3d677565d69edc29a1721b.tar.bz2 | |
Remove staticviews. Use standard login/logout
Diffstat (limited to 'djangorestframework/urls.py')
| -rw-r--r-- | djangorestframework/urls.py | 11 |
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'), ) |
