djangosnippets.org: Latest snippets tagged with 'classbasedgenericviews'https://djangosnippets.org/tags/classbasedgenericviews/2008-09-21T13:56:32.926266-05:00RestView - class for creating a view that dispatches based on request.method
2008-09-21T13:56:32.926266-05:00simonhttps://djangosnippets.org/snippets/1071/<p>Sometimes it's useful to dispatch to a different view method based on request.method - e.g. when building RESTful APIs where GET, PUT and DELETE all use different code paths. RestView is an extremely simple class-based generic view which (although it's a stretch to even call it that) which provides a …</p>
Freely redistributable