mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
Remove deprecated view-string in URL conf
This commit is contained in:
parent
b0894edbeb
commit
1a2b3255ad
|
@ -19,6 +19,7 @@ from rest_framework.authentication import (
|
||||||
TokenAuthentication
|
TokenAuthentication
|
||||||
)
|
)
|
||||||
from rest_framework.authtoken.models import Token
|
from rest_framework.authtoken.models import Token
|
||||||
|
from rest_framework.authtoken.views import obtain_auth_token
|
||||||
from rest_framework.response import Response
|
from rest_framework.response import Response
|
||||||
from rest_framework.test import APIClient, APIRequestFactory
|
from rest_framework.test import APIClient, APIRequestFactory
|
||||||
from rest_framework.views import APIView
|
from rest_framework.views import APIView
|
||||||
|
@ -75,7 +76,7 @@ urlpatterns = [
|
||||||
authentication_classes=[CustomKeywordTokenAuthentication]
|
authentication_classes=[CustomKeywordTokenAuthentication]
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
url(r'^auth-token/$', 'rest_framework.authtoken.views.obtain_auth_token'),
|
url(r'^auth-token/$', obtain_auth_token),
|
||||||
url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
|
url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user