From c1094607cffc6ecfe43778e3aa6422c11dc96a56 Mon Sep 17 00:00:00 2001 From: Pijatow <86741087+Pijatow@users.noreply.github.com> Date: Mon, 10 Mar 2025 01:57:54 +0330 Subject: [PATCH] fix: replace 'namespace' with 'name' - in tutorial/quickstart.md, in path(namespace='rest_framework') is wrong, path takes no argument called 'namespace', correct one is name="rest_framework" --- 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 a140dbce0..d86645e1e 100644 --- a/docs/tutorial/quickstart.md +++ b/docs/tutorial/quickstart.md @@ -129,7 +129,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.