Monday, November 3, 2014

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

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 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.__path__)

['/opt/rh/python33/root/usr/lib/python3.3/site-packages/Django-1.7-py3.3.egg/django']

 >>> import sql_server.pyodbc

>>> print (sql_server.pyodbc.__path__)

['/opt/rh/python33/root/usr/lib/python3.3/site-packages/django_pyodbc_azure-1.2.0-py3.3.egg/sql_server/pyodbc']

  

>>> import sqlalchemy

>>> print (sqlalchemy.__path__)

['/opt/rh/python33/root/usr/lib64/python3.3/site-packages/SQLAlchemy-0.9.7-py3.3-linux-x86_64.egg/sqlalchemy']

>>> 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0ac402e8-285b-46b7-aa7c-07846257e6c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment