Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- router = routers.SimpleRouter()
- router.register(r'abc',AbcViewset)
- abc_router = routers.NestedSimpleRouter(router,r'abc', lookup='abc')
- abc_router.register(r'xyz', XyzViewset, base_name='abc-xyz')
- urlpatterns = [
- url(r'', include(router.urls)),
Add Comment
Please, Sign In to add comment