Thank you.<div><br></div><div>It seems Apache is not recognizing WSGI, even though mods-enabled has wsgi.conf and wsgi.load (and I have the Ubuntu libapache2-mod-wsgi and others installed).</div><div><br></div><div>Can you tell from the output below what&#39;s wrong with the WSGI installation in Apache2?</div>
<div><br></div><div><div>[Fri Jul 13 19:52:47 2012] [info] mod_wsgi (pid=13374): Create interpreter &#39;<a href="http://django.jonathanscorner.com">django.jonathanscorner.com</a>|&#39;.</div><div>[Fri Jul 13 19:52:47 2012] [info] [client 205.197.161.146] mod_wsgi (pid=13374, process=&#39;&#39;, application=&#39;<a href="http://django.jonathanscorner.com">django.jonathanscorner.com</a>|&#39;): Loading WSGI script &#39;/home/jonathan/jonathantest/wsgi.py&#39;.</div>
<div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146] mod_wsgi (pid=13374): Target WSGI script &#39;/home/jonathan/jonathantest/wsgi.py&#39; cannot be loaded as Python module.</div><div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146] mod_wsgi (pid=13374): Exception occurred processing WSGI script &#39;/home/jonathan/jonathantest/wsgi.py&#39;.</div>
<div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146] Traceback (most recent call last):</div><div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146]   File &quot;/home/jonathan/jonathantest/wsgi.py&quot;, line 7, in &lt;module&gt;</div>
<div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146]     from django.core.wsgi import get_wsgi_application</div><div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146] ImportError: No module named wsgi</div>
<div>[Fri Jul 13 19:52:47 2012] [info] [client 205.197.161.146] mod_wsgi (pid=13374, process=&#39;&#39;, application=&#39;<a href="http://django.jonathanscorner.com">django.jonathanscorner.com</a>|&#39;): Loading WSGI script &#39;/home/jonathan/jonathantest/wsgi.py&#39;.</div>
<div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146] mod_wsgi (pid=13374): Target WSGI script &#39;/home/jonathan/jonathantest/wsgi.py&#39; cannot be loaded as Python module.</div><div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146] mod_wsgi (pid=13374): Exception occurred processing WSGI script &#39;/home/jonathan/jonathantest/wsgi.py&#39;.</div>
<div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146] Traceback (most recent call last):</div><div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146]   File &quot;/home/jonathan/jonathantest/wsgi.py&quot;, line 7, in &lt;module&gt;</div>
<div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146]     from django.core.wsgi import get_wsgi_application</div><div>[Fri Jul 13 19:52:47 2012] [error] [client 205.197.161.146] ImportError: No module named wsgi</div>
<div>[Fri Jul 13 19:52:47 2012] [debug] mod_deflate.c(615): [client 205.197.161.146] Zlib: Compressed 769 to 441 : URL /</div><div>[Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146] File does not exist: /home/jonathan/jonathantest/static</div>
<div>[Fri Jul 13 19:52:48 2012] [info] mod_wsgi (pid=13437): Create interpreter &#39;<a href="http://django.jonathanscorner.com">django.jonathanscorner.com</a>|&#39;.</div><div>[Fri Jul 13 19:52:48 2012] [info] [client 205.197.161.146] mod_wsgi (pid=13437, process=&#39;&#39;, application=&#39;<a href="http://django.jonathanscorner.com">django.jonathanscorner.com</a>|&#39;): Loading WSGI script &#39;/home/jonathan/jonathantest/wsgi.py&#39;.</div>
<div>[Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146] mod_wsgi (pid=13437): Target WSGI script &#39;/home/jonathan/jonathantest/wsgi.py&#39; cannot be loaded as Python module.</div><div>[Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146] mod_wsgi (pid=13437): Exception occurred processing WSGI script &#39;/home/jonathan/jonathantest/wsgi.py&#39;.</div>
<div>[Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146] Traceback (most recent call last):</div><div>[Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146]   File &quot;/home/jonathan/jonathantest/wsgi.py&quot;, line 7, in &lt;module&gt;</div>
<div>[Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146]     from django.core.wsgi import get_wsgi_application</div><div>[Fri Jul 13 19:52:48 2012] [error] [client 205.197.161.146] ImportError: No module named wsgi</div>
<div>[Fri Jul 13 19:52:48 2012] [debug] mod_deflate.c(615): [client 205.197.161.146] Zlib: Compressed 432 to 297 : URL /favicon.ico</div><br><div class="gmail_quote">On Fri, Jul 13, 2012 at 2:43 PM, Martin Maney <span dir="ltr">&lt;<a href="mailto:maney@two14.net" target="_blank">maney@two14.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Jul 13, 2012 at 01:19:16PM -0500, Jonathan Hayward wrote:<br>
&gt; My wsgi.py is copied<br>
&gt; from /usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py<br>
<br>
</div>That&#39;s Django&#39;s internals, not the script you need.  It&#39;s four lines of<br>
code, but needs the default path string changed to match your project.<br>
<br>
  <a href="https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/" target="_blank">https://docs.djangoproject.com/en/1.4/howto/deployment/wsgi/</a><br>
<br>
Linked from the description of the changed WSGI support in the release<br>
notes and perhaps from other places.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Happy Holidays!  Cry &quot;Charge it!&quot; and let slip the dogs of more.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Chicago mailing list<br>
<a href="mailto:Chicago@python.org">Chicago@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/chicago" target="_blank">http://mail.python.org/mailman/listinfo/chicago</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="Verdana, Arial, sans" size="3"><span style="font-family:Times"><table cellpadding="0" cellspacing="0" style="font-family:Verdana,Arial,sans">
<tbody><tr><td style="padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:20px"><a href="http://jonathanscorner.com/" target="_blank"><img src="http://jonathanscorner.com/images/wardrobe_square_100.jpg" height="100" width="100" border="0" alt="Christos Jonathan Hayward"></a></td>
<td style="padding-top:20px;padding-right:20px;padding-bottom:20px;padding-left:0px"><div style="margin-bottom:8px">Jonathan Hayward, an Orthodox Christian author.</div><div style="margin-top:2px;margin-bottom:8px;padding-top:4px;padding-bottom:4px;padding-left:6px;padding-right:6px;background-color:rgb(255,255,170);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:silver;border-right-color:silver;border-bottom-color:silver;border-left-color:silver">
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="color:silver"><a href="https://www.amazon.com/author/cjshayward" target="_blank"><b><span></span>Amazon</b></a></span><span style="color:silver"> </span><span style="color:rgb(192,192,192)">•</span><span style="color:silver"> <a href="http://jonathanscorner.com/author/" title="Author biography" target="_blank">Author Bio</a> </span><span style="color:rgb(192,192,192)">•</span><span style="color:rgb(192,192,192)"> </span><span style="color:silver"><strong><a href="mailto:christos.jonathan.hayward@gmail.com" title="christos.jonathan.hayward@gmail.com" target="_blank">Email</a></strong> • <a href="http://www.facebook.com/christos.jonathan.hayward" title="@christos.jonathan.hayward" target="_blank">Facebook</a> • <a href="http://jonathanscorner.com/plus" title="@Christos Jonathan Hayward" target="_blank">Google Plus</a> </span><span style="color:rgb(192,192,192)">• <b><a href="http://stornge.com/amazon" target="_blank">Kindle</a></b></span> <span style="color:silver">• </span><a href="http://www.linkedin.com/in/jonathanhayward" title="@jonathanhayward" target="_blank">LinkedIn</a><span style="color:silver"> • </span><a href="http://twitter.com/JonathansCorner" title="@JonathansCorner" target="_blank">Twitter</a><span style="color:silver"> • </span><strong style="color:silver"><a href="http://jonathanscorner.com/" title="JonathansCorner.com" target="_blank">Web</a></strong><span style="color:silver"> • </span><a href="http://jonathanscorner.com/" title="New creations added to the website." target="_blank">What&#39;s New?</a></p>
</div><div style="margin-bottom:8px">I invite you to visit my &quot;theology, literature, and other creative works&quot; site. <b><a href="http://random.jonathanscorner.com/" target="_blank">See a random page!</a></b></div>
</td></tr></tbody></table></span></font><br>
</div>