Skip to content

Commit

Permalink
Fix arguments (encode#7995)
Browse files Browse the repository at this point in the history
`path()` has no argument `namespace`, it has `name` argument
  • Loading branch information
WannaFight committed Sep 6, 2021
1 parent 655e803 commit 9716b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9716b1b

Please sign in to comment.