Re: Returning nothing from a view

2012-07-06 Thread Larry Martell
On Fri, Jul 6, 2012 at 2:47 PM, Tomas Neme wrote: > Just return an empty response, with a 200 OK code: > > return HttpResponse("") > > I'm not sure whether you can omit the "" Thanks. I did this: return HttpResponse(status=201) > On Fri, Jul 6, 2012 at 5:44 PM, Larry Martell wrote: >> I

Re: Returning nothing from a view

2012-07-06 Thread Tomas Neme
Just return an empty response, with a 200 OK code: return HttpResponse("") I'm not sure whether you can omit the "" On Fri, Jul 6, 2012 at 5:44 PM, Larry Martell wrote: > I have a situation where I'm sending an ajax request to a function > that updates a row in database. I then want to return c