'A problem with django using DefaultRouterWithNest

router2 = DefaultRouterWithNest()
(
        router2.register(r'eva',eval.Evadetail, basename='eva')
        .register(r'evand',eval.Evand,basename='eva-evand',parents_query_lookups=['eva_id'])
        .register(r'evard',eval.Evard,basename='eva-evard',parents_query_lookups=['eva_id','eva_nd_id'])
)

problems: NameError: name 'DefaultRouterWithNest' is not defined

what packeages should I import?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source