diff options
| author | Pavel Savchenko | 2012-11-28 11:58:34 +0200 |
|---|---|---|
| committer | Pavel Savchenko | 2012-11-28 11:58:34 +0200 |
| commit | fd383b2b5e752962242066b3587deec5820eaa2e (patch) | |
| tree | 9931242f6e1679296ce8a6c3ab1cc9fb73f831c1 /docs/api-guide/authentication.md | |
| parent | 11ef60b127d38341874989a40500fe3c61771d28 (diff) | |
| download | django-rest-framework-fd383b2b5e752962242066b3587deec5820eaa2e.tar.bz2 | |
Fix location of obtain_auth_token view
Diffstat (limited to 'docs/api-guide/authentication.md')
| -rw-r--r-- | docs/api-guide/authentication.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md index 8ed6ef31..43fc15d2 100644 --- a/docs/api-guide/authentication.md +++ b/docs/api-guide/authentication.md @@ -116,7 +116,7 @@ When using `TokenAuthentication`, you may want to provide a mechanism for client REST framework provides a built-in view to provide this behavior. To use it, add the `obtain_auth_token` view to your URLconf: 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') ) Note that the URL part of the pattern can be whatever you want to use. |
