[Chicago] Help deploying Satchmo with WSGI

Martin Maney maney at two14.net
Fri Jul 13 22:03:53 CEST 2012


On Fri, Jul 13, 2012 at 02:55:17PM -0500, Jonathan Hayward wrote:
> Can you tell from the output below what's wrong with the WSGI installation
> in Apache2?
  ...
> [Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146] mod_wsgi
> (pid=13437): Target WSGI script '/home/jonathan/jonathantest/wsgi.py'
> cannot be loaded as Python module.
> [Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146] mod_wsgi
> (pid=13437): Exception occurred processing WSGI script
> '/home/jonathan/jonathantest/wsgi.py'.
> [Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146] Traceback (most
> recent call last):
> [Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146]   File
> "/home/jonathan/jonathantest/wsgi.py", line 7, in <module>
> [Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146]     from
> django.core.wsgi import get_wsgi_application
> [Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146] ImportError: No
> module named wsgi

It can't seem to find django.core.wsgi in order to import from it. 
This is a Django 1.4 install, isn't it?  Been a while, but I have the
idea that it is...  If it's 1.3 then the script needs to different, see
the docs for the relevant Django version.

-- 
Facebook’s continual ratcheting down of user privacy in order to
satisfy its actual customers­— the advertisers — and enhance its
revenue is just a hint of what’s to come.  -- Bruce Schneier



More information about the Chicago mailing list