diff options
| author | Rob Romano | 2012-11-10 16:17:50 -0800 |
|---|---|---|
| committer | Rob Romano | 2012-11-10 16:17:50 -0800 |
| commit | 063c027c7b4278620fda6cf4aa7825a817748cc0 (patch) | |
| tree | 2e38d0bb97e1f26b958dc41b923bfb1a466eed73 /rest_framework/authtoken/urls.py | |
| parent | e029e44477111ed16da8954a53dcf08c08cfb403 (diff) | |
| download | django-rest-framework-063c027c7b4278620fda6cf4aa7825a817748cc0.tar.bz2 | |
Added authtoken login/logout urlpatterns and views
Diffstat (limited to 'rest_framework/authtoken/urls.py')
| -rw-r--r-- | rest_framework/authtoken/urls.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rest_framework/authtoken/urls.py b/rest_framework/authtoken/urls.py index 2a3e8115..8bea46c0 100644 --- a/rest_framework/authtoken/urls.py +++ b/rest_framework/authtoken/urls.py @@ -13,9 +13,9 @@ your authentication settings include `TokenAuthentication`. ) """ from django.conf.urls.defaults import patterns, url -from rest_framework.authtoken.views import AuthTokenView +from rest_framework.authtoken.views import AuthTokenLoginView, AuthTokenLogoutView urlpatterns = patterns('rest_framework.authtoken.views', - url(r'^login/$', AuthTokenView.as_view(), name='token_login'), -# url(r'^logout/$', 'token_logout', name='token_logout'), + url(r'^login/$', AuthTokenLoginView.as_view(), name='token_login'), + url(r'^logout/$', AuthTokenLogoutView.as_view(), name='token_logout'), ) |
