From c5acaa8939968a3bf14ac091199e83ac8c9b0f5d Mon Sep 17 00:00:00 2001 From: Rob Romano Date: Mon, 26 Nov 2012 15:28:29 -0800 Subject: [PATCH] Fix docs about the login token: authtoken.views.obtain_auth_token --- docs/api-guide/authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md index a30bd22c1..5ba75e0bd 100644 --- a/docs/api-guide/authentication.md +++ b/docs/api-guide/authentication.md @@ -117,7 +117,7 @@ When using TokenAuthentication, it may be useful to add a login view for clients REST framework provides a built-in login view for clients to retrieve the token called `rest_framework.authtoken.obtain_auth_token`. To use it, add a pattern to include the token login view for clients as follows: urlpatterns += patterns('', - url(r'^api-token-auth/', 'rest_framework.authtoken.obtain_auth_token') + url(r'^api-token-auth/', 'rest_framework.authtoken.views.obtain_auth_token') ) The `r'^api-token-auth/'` part of pattern can actually be whatever URL you want to use. The authtoken login view will render a JSON response when a valid `username` and `password` fields are POST'ed to the view using forms or JSON: