mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 01:26:53 +03:00
This reverts commit 3bf611787a
.
This commit is contained in:
parent
730d216794
commit
09a0c551ca
|
@ -133,8 +133,6 @@ Okay, now let's wire up the API URLs. On to `tutorial/urls.py`...
|
|||
path('api-auth/', include('rest_framework.urls', namespace='rest_framework'))
|
||||
]
|
||||
|
||||
urlpatterns += router.urls
|
||||
|
||||
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.
|
||||
|
||||
Again, if we need more control over the API URLs we can simply drop down to using regular class-based views, and writing the URL conf explicitly.
|
||||
|
|
Loading…
Reference in New Issue
Block a user