Hi,
Whenever i refresh the web page then i got below error in Apache error
log file. I have googled about this issue, but did not find the proper
solution for this issue.
mod_wsgi (pid=9655): Exception occurred processing WSGI script '/x/y/z/
web/apps.wsgi'.
IOError: failed to write data
my apps.wsgi script looks like this:
import os, sys
# figure out where on disk this gnatatui install is hiding
base_path = __file__.split('/web/apps.wsgi')[0]
# and add it to sys.path
for path in ('/op/ww/dj/django-trunk', base_path):
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'web.settings'
import django.core.handlers.wsgi
_application = django.core.handlers.wsgi.WSGIHandler()
def application(environ, start_response):
base_url = environ['SCRIPT_NAME'][1:] # drop leading slash
if base_url != 'web':
from django.conf import settings
settings.BASE_URL = base_url
# Adjust PATH_INFO to get around a Djago bug. See:
# http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango
environ['PATH_INFO'] = environ['SCRIPT_NAME'] +
environ['PATH_INFO']
return _application(environ, start_response)
Please let me know if you need any more info.
Any help will be highly appreciate.
Thanks.
--
You received this message because you are subscribed to the Google Groups
"modwsgi" 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/modwsgi?hl=en.