Re: Multiple site package directories for Python and question about apache configuration

2014-11-05 Thread Scot Hacker
You want to establish the path directories in your .wsgi file. Use `addsitedir` to set the path to site-packages and set additional paths with path.append, e.g.: import os, sys, site site.addsitedir('/path/to/site-packages') sys.path.append('/extra/path/1') sys.path.append('/extra/path/2')

Re: Multiple site package directories for Python and question about apache configuration

2014-11-04 Thread Aliane Abdelouahab
i dont know how to do that, but the easied way is to just copy the whole packages and paste them in only one directory, since python packages are just folders/eggs Le mardi 4 novembre 2014 13:26:12 UTC+1, robert brook a écrit : > > I see that there are 2 paths in my application for site packages

Re: Multiple site package directories for Python and question about apache configuration

2014-11-04 Thread robert brook
I see that there are 2 paths in my application for site packages. How do I configure Apache to use the 2 packages. A typical entry in Apache is WSGIPythonPath /path/to/mysite.com:/path/to/your/venv/lib/python3.X/site-packages Can I specify 2 paths to represent the 2 locations of site packages.

Re: Multiple site package directories for Python and question about apache configuration

2014-11-03 Thread Aliane Abdelouahab
On linux, python installs libs in diffferents places: for example in open suse, when you install it the first time, and you choose python and some third party libraries, and then when you will do setup.py for a library you download, they will be in different locations! http://stackoverflow.com/a

Re: Multiple site package directories for Python and question about apache configuration

2014-11-03 Thread robert brook
I overlooked mentioning that the path command returned 2 different locations for the 3 modules. Not sure why one package got installed in the lib64 path. They were all installed with the setup.py install command. On Monday, November 3, 2014 3:18:06 PM UTC-5, robert brook wrote: > > I am buildin

Multiple site package directories for Python and question about apache configuration

2014-11-03 Thread robert brook
I am building the web application on a linux red hat machine. I was trying to pull the path for the site packages for the 3 modules that I have installed so that I can specify the path in the apache config file Can I specify 2 paths in Apache? Thanks >>> import django >>> print (django.__pa