title: Why is mod_wsgi not able to write data? IOError: failed to write data
body: <p>What could be causing this error:  </p>
  
  <p>$ sudo tail -n 100 /var/log/apache2/error.log'  </p>
  
  <pre><code>[Wed Dec 29 15:20:03 2010] [error] [client 220.181.108.181] mod_wsgi (pid=20343): Exception occurred processing WSGI script '/home/username/public_html/idm.wsgi'.  
  [Wed Dec 29 15:20:03 2010] [error] [client 220.181.108.181] IOError: failed to write data  
  </code></pre>
  
  <p>Here is the WSGI script:  </p>
  
  <pre><code>$ cat public_html/idm.wsgi 
  import os
  import sys
  
  sys.path.append('/home/username/public_html/IDM_app/')
  
  os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
  
  import django.core.handlers.wsgi
  
  application = django.core.handlers.wsgi.WSGIHandler()
  </code></pre>
  
  <p>Why would Django not be able to write data?</p>
  
  <p>I'm running Django 1.2.4</p>