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'
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
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
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
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
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
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
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':
8 matches
Mail list logo