Chapter 12. Utilizing Generic Views
What You’ll Learn in This Hour
- How to use simple generic views
- How to display a list of objects using generic views
- How to display object details using generic views
- How to display date-based object indexes using generic views
- How to use generic views to create objects
- How to use generic views to update objects
- How to use generic views to delete objects
Django provides a set of easy-to-use packages called generic views that allow you to generate basic generic views quickly. Generic views do a good job of abstracting common tasks such as building web views to display lists of objects, as well as create, update, and delete objects.
Basically, generic views do the work that is normally done in an application’s ...
Get Sams Teach Yourself Django in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.