[Answered ]-Error while initializing rest framework urls

2👍

✅

Routers work with ViewSets. Your PeriodAveragesList extends ListAPIView, which is a class based view, not a ViewSet.

If you still want to use a router for that view, see this answer for a workaround.

Leave a comment