Re: mod_wsgi and stderr

2010-01-11 Thread Patrick May
On Jan 5, 1:55 pm, Patrick May wrote: >                 I'm running Django using mod_wsgi under Apache.  I'm trying > to write messages to the Apache error log with: > >                 sys.stderr.write('Message...') > > but for some reason they don'

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 luck, Patrick -- You re

Re: mod_wsgi and stderr

2010-01-05 Thread Patrick May
On Jan 5, 2:29 pm, Karen Tracey wrote: > On Tue, Jan 5, 2010 at 2:22 PM, Patrick May wrote: > > > > > On Jan 5, 2:18 pm, Karen Tracey wrote: > > > On Tue, Jan 5, 2010 at 1:55 PM, Patrick May > >wrote: > > > > >                  I’m running Django

Re: mod_wsgi and stderr

2010-01-05 Thread Patrick May
On Jan 5, 2:18 pm, Karen Tracey wrote: > On Tue, Jan 5, 2010 at 1:55 PM, Patrick May wrote: > > >                  I’m running Django using mod_wsgi under Apache.  I’m > > trying to write messages to the Apache error log with: > > >                 sys.stderr.write(‘Me

mod_wsgi and stderr

2010-01-05 Thread Patrick May
I'm running Django using mod_wsgi under Apache. I'm trying to write messages to the Apache error log with: sys.stderr.write('Message...') but for some reason they don't appear. This is under OS X (Snow Leopard). Do I have to configure something in httpd.conf t

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 p

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

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':