From cd1e40a7e41cf5eac5f023d18aef004071f79ea6 Mon Sep 17 00:00:00 2001 From: Ivan Trushin <33528037+WannaFight@users.noreply.github.com> Date: Tue, 18 May 2021 13:21:46 +0300 Subject: [PATCH] Fix arguments `path()` has no argument `namespace`, it has `name` argument --- docs/tutorial/quickstart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial/quickstart.md b/docs/tutorial/quickstart.md index ee839790f..e19577f61 100644 --- a/docs/tutorial/quickstart.md +++ b/docs/tutorial/quickstart.md @@ -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.