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't be found with this environment. I've struggled with this package before. Virtualenv and pip install of this package works perfectly from the command line (which is great I don't have to go in and look at this manually as I've done in my own creation of virtual environments). However, with settings like you have, it can't find the package... This is why I'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'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"><<a href="mailto:ewalstad@gmail.com">ewalstad@gmail.com</a>></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 <<a href="mailto:glen@glenjarvis.com">glen@glenjarvis.com</a>> wrote:<br>
> We'll still have to have a<br>
> private "local_settings.py" for the developers to play in (as we can't have<br>
> a different settings file for each of them).<br>
</div>Why not?<br>
<div class="im"><br>
<br>
> I can't "activate" the same environment in the Apache<br>
> configuration file (or I don't seem to be successful in doing so).<br>
</div>> ...We also have mod_python<br>
An apache VH config similar to this works for me:<br>
<br>
<br>
<Location "/"><br>
SetHandler python-program<br>
PythonHandler django.core.handlers.modpython<br>
SetEnv DJANGO_SETTINGS_MODULE project_name.settings<br>
PythonPath<br>
"sys.path+['/path/to/virtualenvs/venv_name/lib/python2.N/site-packages',<br>
'/path/to/django_X_Y', '/path/to/django/project']"<br>
...<br>
</Location><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>