mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 05:04:31 +03:00
Fix location of obtain_auth_token view
This commit is contained in:
parent
11ef60b127
commit
fd383b2b5e
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user