I don't use Apache; I use nginx, but I wonder if it's possible to simply use a Virtual Environment with Apache? That's what I do with uWSGI. It makes it a lot easier because you can simply create a requirements.txt file and easily re-deploy or upgrade your environment as needed.<div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Dec 5, 2012 at 7:10 AM, Neil Ludban <span dir="ltr"><<a href="mailto:nludban@columbus.rr.com" target="_blank">nludban@columbus.rr.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
See if this works:<br>
<br>
import site<br>
site.addsitedir('/srv/website/www/site-packages')<br>
<br>
<br>
<a href="http://docs.python.org/2/library/site.html" target="_blank">http://docs.python.org/2/library/site.html</a><br>
<div><div class="h5"><br>
<br>
On Tue, 4 Dec 2012 22:08:24 -0500<br>
Joshua Kramer <<a href="mailto:joskra42.list@gmail.com">joskra42.list@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I have a basic question.  I am trying to put Mezzanine under Apache using<br>
> wsgi.  In order to not clutter up the system site-packages directory, I<br>
> have a directory like so:<br>
><br>
> /srv/website/www/site-packages<br>
><br>
> Under this site-packages are a number of packages provided by Mezzanine:<br>
><br>
> bleach-1.1.5-py2.6.egg<br>
> filebrowser_safe-0.2.12-py2.6.egg<br>
> Mezzanine-1.2.4-py2.6.egg<br>
> pytz-2012h-py2.6.egg<br>
> Django-1.4.2-py2.6.egg<br>
> grappelli_safe-0.2.10-py2.6.egg<br>
> Pillow-1.7.8-py2.6-linux-x86_64.egg<br>
> setuptools-0.6c11-py2.6.egg<br>
> easy-install.pth<br>
> html5lib-0.95-py2.6.egg<br>
> pip-1.1-py2.6.egg<br>
> setuptools.pth<br>
><br>
> The eggs are really directories themselves, and under each .egg lies the<br>
> module.  So for example, under Mezzanine-1.2.4-py2.6.egg, there's a<br>
> 'mezzanine' directory.<br>
><br>
> In the wsgi launcher, I have a call like this:<br>
><br>
> sys.path.append('/srv/website/www/site-packages')<br>
><br>
> This appears to not be working, as Apache can't find any of the modules<br>
> under that site-packages directory that are within the eggs.<br>
><br>
> Is there a cleaner or more elegant way to get to where I want to be?<br>
><br>
> Thanks!<br>
> -JK<br>
</div></div>_______________________________________________<br>
CentralOH mailing list<br>
<a href="mailto:CentralOH@python.org">CentralOH@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/centraloh" target="_blank">http://mail.python.org/mailman/listinfo/centraloh</a><br>
</blockquote></div><br></div>