Re:Learn web development: Django Web Framework
by icn2 on Thursday February 09, 2017 @09:59PM
(#13612925)
Is Django restful in current version? Or I still need these if request.GET and if request.POST ?
[ Parent
| on HN ]
Re:Learn web development: Django Web Framework
by haikuginger on Thursday February 09, 2017 @10:12PM
(#13612971)
So, there are a few ways to handle it. DRF gives you a REST-oriented paradigm to work with, but in standard Django, you can do class-based views with either get, post, etc methods, or you can use generics like "ListView" and just provide some stock methods like get_queryset to flesh it out.