On Jan 5, 1:55 pm, Patrick May <[email protected]> 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't appear. This is under OS X (Snow Leopard).
> Do I have to configure something in httpd.conf to enable this?
I'm still having this problem. The relevant section of my httpd.conf
looks like this:
. . .
LoadModule wsgi_module libexec/apache2/mod_wsgi.so
. . .
<IfModule wsgi_module>
WSGIScriptAlias /codestreet /Users/Patrick/codestreet/src/rest/
django.wsgi
<Directory /Users/Patrick/codestreet/src/rest>
Order deny,allow
Allow from all
</Directory>
</IfModule>
My django.wsgi contains:
import os
import sys
sys.path.append('/Users/Patrick/codestreet/src/rest')
os.environ['DJANGO_SETTINGS_MODULE'] = 'server.settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
The only errors I see in /var/log/apache2/error_log are:
[Mon Jan 11 11:12:05 2010] [error] [client ::1] mod_wsgi (pid=93049):
Exception occurred processing WSGI script '/Users/Patrick/codestreet/
src/rest/django.wsgi'.
[Mon Jan 11 11:12:05 2010] [error] [client ::1] IOError: failed to
write data
I have had some successful invocations, so I know the request is
getting to the appropriate handler. Any thoughts?
Thanks,
Patrick
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.