mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Fix arguments (#7995)
`path()` has no argument `namespace`, it has `name` argument
This commit is contained in:
parent
655e803adf
commit
9716b1b6b7
|
@ -126,7 +126,7 @@ Okay, now let's wire up the API URLs. On to `tutorial/urls.py`...
|
|||
# Additionally, we include login URLs for the browsable API.
|
||||
urlpatterns = [
|
||||
path('', include(router.urls)),
|
||||
path('api-auth/', include('rest_framework.urls', namespace='rest_framework'))
|
||||
path('api-auth/', include('rest_framework.urls', name='rest_framework'))
|
||||
]
|
||||
|
||||
Because we're using viewsets instead of views, we can automatically generate the URL conf for our API, by simply registering the viewsets with a router class.
|
||||
|
|
Loading…
Reference in New Issue
Block a user