On Fri, 2006-09-22 at 17:17 +0000, wes wrote: > I also prefer using a dispatcher in the view, its simple and flexible, > and still allows you to use things like the @login_required decorator > on your base view function. > > >I'm using that sort of view now > >in a couple of places where I'm supporting POST, PUT, GET and DELETE all > >on the same resource (an Atom publishing application). > > How are you accessing the request.PUT and request.DELETE? I would think > those have to be added to the HttpRequest object before you could use > them in the view.
The method type comes from request.method. The body of the request comes from request.raw_post_data (this gives you any data that is sent in the body, rather than just data from a POST request). Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers -~----------~----~----~----~------~----~------~--~---
