Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Django REST Framework Make the REST Framework Work for You Generic CRUD

Nursultan Bolatbayev
Nursultan Bolatbayev
16,774 Points

If Generic Views do everything what ListView does, then where we will need ListView?

As Kenneth in the video shows that Generic View is much easier and less code, but does more. In which cases we will need ListView instead of Generic View?

1 Answer

Chris Komaroff
PLUS
Chris Komaroff
Courses Plus Student 14,198 Points

By ListView, do you refer to APIView? The generic views are extensions of APIView, so learning about APIView is useful to understand what generic views do for you. It also sounds like you may need to create your own generic views sometimes that are extensions of APIView.