Revert "Fix arguments (#7995)" (#8156)

This reverts commit 9716b1b6b7.
This commit is contained in:
Tom Christie 2021-09-06 12:19:20 +01:00 committed by GitHub
parent 9716b1b6b7
commit 9ce541e909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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', name='rest_framework'))
path('api-auth/', include('rest_framework.urls', namespace='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.