Re: django test client doesn't handle non-multipart data in PUT

2009-11-08 Thread Matt Schinckel
On Nov 9, 11:45 am, Russell Keith-Magee wrote: > On Mon, Nov 9, 2009 at 9:40 AM, Matt Schinckel > wrote: > > > I am developing a django site that has a RESTful API, and allows for > > json representations of the resources. > > > I have hit a bit of a hitch with respect to the data that I need t

Re: django test client doesn't handle non-multipart data in PUT

2009-11-08 Thread Russell Keith-Magee
On Mon, Nov 9, 2009 at 9:40 AM, Matt Schinckel wrote: > > I am developing a django site that has a RESTful API, and allows for > json representations of the resources. > > I have hit a bit of a hitch with respect to the data that I need to > PUT, to do with the inbuilt test client. > > If I use c

django test client doesn't handle non-multipart data in PUT

2009-11-08 Thread Matt Schinckel
I am developing a django site that has a RESTful API, and allows for json representations of the resources. I have hit a bit of a hitch with respect to the data that I need to PUT, to do with the inbuilt test client. If I use client.post(url, data, content_type='application/json', **AUTH), then