This is the config that works in most other situations for me too. We have a package (recaptcha client) that is packaged from easy_install (and I think some non-standard customization from the creators) that can&#39;t be found with this environment. I&#39;ve struggled with this package before. Virtualenv and pip install of this package works perfectly from the command line (which is great I don&#39;t have to go in and look at this manually as I&#39;ve done in my own creation of virtual environments). However, with settings like you have, it can&#39;t find the package...  This is why I&#39;m considering the activate_this.py within the module.<div>
<br></div><div>Thanks for letting me know that this is how you handle it so I know I&#39;m at least in the right ballpark of the solution.</div><div><br></div><div>Cheers,</div><div><br></div><div>Glen<br><div><br><div class="gmail_quote">
On Thu, Feb 24, 2011 at 10:53 AM, Eric Walstad <span dir="ltr">&lt;<a href="mailto:ewalstad@gmail.com">ewalstad@gmail.com</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 Thu, Feb 24, 2011 at 10:35 AM, Glen Jarvis &lt;<a href="mailto:glen@glenjarvis.com">glen@glenjarvis.com</a>&gt; wrote:<br>
&gt;  We&#39;ll still have to have a<br>
&gt; private &quot;local_settings.py&quot; for the developers to play in (as we can&#39;t have<br>
&gt; a different settings file for each of them).<br>
</div>Why not?<br>
<div class="im"><br>
<br>
&gt; I can&#39;t &quot;activate&quot; the same environment in the Apache<br>
&gt; configuration file (or I don&#39;t seem to be successful in doing so).<br>
</div>&gt; ...We also have mod_python<br>
An apache VH config similar to this works for me:<br>
<br>
<br>
    &lt;Location &quot;/&quot;&gt;<br>
        SetHandler python-program<br>
        PythonHandler django.core.handlers.modpython<br>
        SetEnv DJANGO_SETTINGS_MODULE project_name.settings<br>
        PythonPath<br>
&quot;sys.path+[&#39;/path/to/virtualenvs/venv_name/lib/python2.N/site-packages&#39;,<br>
&#39;/path/to/django_X_Y&#39;, &#39;/path/to/django/project&#39;]&quot;<br>
        ...<br>
    &lt;/Location&gt;<br>
<br>
hth,<br>
<font color="#888888"><br>
Eric<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Things which matter most must never be at the mercy of things which matter least.</span><br>
<br>-- Goethe <br>
</div></div>