Revert "Register Django urls (#8778)"

This reverts commit 3bf611787a.
This commit is contained in:
TAKAHASHI Shuuji 2024-02-12 20:28:26 +09:00
parent 5ad467aa2c
commit 3eb98e96e2
No known key found for this signature in database
GPG Key ID: F15C887632129F5E

View File

@ -132,8 +132,6 @@ Okay, now let's wire up the API URLs. On to `tutorial/urls.py`...
path('', include(router.urls)),
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.