title: ImproperlyConfigured: Error importing middleware django.middleware.common: "No module named _md5"
body: <p>I am running Apache2 on Ubuntu 9 with python 2.6.2 installed. I get the following error when I try to access a page on my django application: </p>
  
  <blockquote>
    <p>File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/base.py", line 42, in load_middleware raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))ImproperlyConfigured: Error importing middleware django.middleware.common: "No module named _md5"</p>
  </blockquote>
  
  <p>Here is my wsgi file:</p>
  
  <blockquote>
    <p>import os, sys
    sys.path.append('/etc/apache2/sites-available/')
    os.environ['DJANGO_SETTINGS_MODULE'] = 'dynamicuddi.settings'
    import django.core.handlers.wsgi
    application = django.core.handlers.wsgi.WSGIHandler()</p>
  </blockquote>
  
  <p>From what I've read I think it's a python path problem but I haven't seen an actual solution to this that has worked. Any ideas?</p>
  
  <p>Thanks in advance.</p>