You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if I could get your help on this, so i would like to create a single nested simple router but unfortunately, it's result the error like RuntimeError: parent registered resource not found.
here's my urls.py which contains the following code like this:
going to add to this topic, as it seems related - at this moment, it seems like NestedDefaultRouter is not working properly too.
Or maybe missing its whole "DefaultRouter" purpose.
Doing things the following way gives me the very same RuntimeError OP has got:
I mean - router itself now works, I'm able to get to /test/ endpoint.
However, it does not work as a default router.
What I've expected:
Entering /test/ gives me the same layout as DefaultRouter usually does, just for
endpoints registered to category_router. E.g /test/foo/ and /test/bar/.
What I've got:
Entering /test/ renders the TestViewSet. I'm able to access /test/foo/ and /test/bar/,
but miss the APIRootView
Am I doing it wrong, or? How do I correctly get a DefaultRouter-like behavior (router that renders a list of endpoints attached to it on its base endpoint) on a nested router?
I was wondering if I could get your help on this, so i would like to create a single nested simple router but unfortunately, it's result the error like
RuntimeError: parent registered resource not found
.here's my urls.py which contains the following code like this:
I can't seem to figure out why this error is still occurring, any help would be much appreciated
The text was updated successfully, but these errors were encountered: