Re: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-07 Thread Patrick May
On Jan 6, 3:22 pm, Rob wrote: > Have you managed to figure this out - I'm having a similar (I believe > the same) issue. It was the typo pointed out by Daniel Roseman. You may need to turn on a more detailed debugging level in your httpd.conf to see it in the log. Good

Re: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-06 Thread Rob
Have you managed to figure this out - I'm having a similar (I believe the same) issue. On Jan 5, 6:27 am, Patrick May wrote: > Can you make it fail in the development server, with DEBUG turned on? > > If so, you can get more helpful error display and/or do

RE: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-05 Thread Patrick May
Can you make it fail in the development server, with DEBUG turned on? If so, you can get more helpful error display and/or do pdb.set_trace() and poke around. I'll give that a try, thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To

RE: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-05 Thread Patrick May
Assuming the code you've posted is a real cut and paste, you have "HTTPResponse" for POST but "HttpResponse" for GET. Python is case- sensitive, so only "HttpResponse" will work. Thanks, that was it. Are errors like that written to a log file anywhere? Thanks again, Patrick -- You received

Re: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-04 Thread Bill Freeman
Can you make it fail in the development server, with DEBUG turned on? If so, you can get more helpful error display and/or do pdb.set_trace() and poke around. On Mon, Jan 4, 2010 at 4:25 PM, Patrick May wrote: > Hi, > > I have Django running under Apache with

Re: Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-04 Thread Daniel Roseman
On Jan 4, 9:25 pm, Patrick May wrote: > Hi, > > I have Django running under Apache with mod_wsgi.  I've got a simple URL > handler that looks like this: > > def handler(request): >     response = None > >     if request.method == 'POST' or request.method == 'PUT': >  

Django, Apache, mod_wsgi, GET works, POST doesn't

2010-01-04 Thread Patrick May
Hi, I have Django running under Apache with mod_wsgi. I've got a simple URL handler that looks like this: def handler(request): response = None if request.method == 'POST' or request.method == 'PUT': response = HTTPResponse(status=201) elif request.method == 'GET':