We have to check for request.method to suitably route the request to the logic.
Would it be nice if we have something like doGet or doPost(similar to java servlets) that we have in our views, so that the request gets automatically routed , and the code is structured nicely? So a view would look like: def funcname(request,itemid,......): def doPOST(): #.....do things when the request is POST.... def doGET(): #.....do things when the request is GET...... Comments? (note that i am not passing request object to individual doPOST or doGET). -V- -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.