Commit 0a4c9f08 by Stephan Groß

Merge pull request #456 from asfaltboy/fix_auth_token_docs

Fix location of obtain_auth_token view
parents 11ef60b1 fd383b2b
...@@ -116,7 +116,7 @@ When using `TokenAuthentication`, you may want to provide a mechanism for client ...@@ -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: 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('', 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. Note that the URL part of the pattern can be whatever you want to use.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment