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

Re: In Apache Configuration, What Replaces mod_python

2011-01-24 Thread Patrick McDonnell
On Mon, Jan 24, 2011 at 10:10 AM, octopusgrabbus wrote: > I'm trying to reconfigure to mod_wsgi and am wisely starting with a > workstation. > > If I'm understanding you correctly, you're trying to migrate from using apache/mod_python to serve your Django project to apache/mod_wsgi, right? If this

Re: In Apache Configuration, What Replaces mod_python

2011-01-24 Thread Daniel Roseman
On Monday, January 24, 2011 3:10:17 PM UTC, octopusgrabbus wrote: > > I'm trying to reconfigure to mod_wsgi and am wisely starting with a > workstation. > > What changes in this line which is in full context below: > PythonHandler django.core.handlers.modpython > > modpython changes, but to wha

In Apache Configuration, What Replaces mod_python

2011-01-24 Thread octopusgrabbus
I'm trying to reconfigure to mod_wsgi and am wisely starting with a workstation. What changes in this line which is in full context below: PythonHandler django.core.handlers.modpython modpython changes, but to what does it change? Listen 8002 WSGIScriptAlias / /home/amr/django/django.wsgi Alias

Re: Apache configuration

2010-07-10 Thread Anders Petersson
. I used > python manage.py runserver while running through the examples. > > Now, I want to configure this in Apache. Django is complaining about > finding modules underneath my top directory. > > Here's the apache configuration: > > > SetHan

Apache configuration

2010-07-10 Thread octopusgrabbus
I worked through samples in the Visual Quickpro Guide Django. I used python manage.py runserver while running through the examples. Now, I want to configure this in Apache. Django is complaining about finding modules underneath my top directory. Here's the apache configuration: SetHa

apache configuration to get host to use portals app/url within django project

2010-06-19 Thread wynfred
I have searched these forums and online for an answer to this question, but I'm not sure about the best practice. We are using django 1.2.1 with apache and mod_python on ubuntu. We have created a portals app within a django project to handle customized portals (with hosts like portal1.oursite.com)

Django Apache configuration Help !

2009-05-07 Thread veeravendhan
ath /path/ SetHandler python-program PythonHandler django.core.handlers.modpython PythonDebug On SetEnv DJANGO_SETTINGS_MODULE site.settings PythonPath "['/home/somePath', '/usr/lib/python2.5/site- packages/django'] + sys.path" for th

Django+ Apache Configuration in Fedora 9

2008-09-24 Thread Harish
hi folks, I am trying to configure apache for a django project.. we are getting a following error "ImproperlyConfigured: Error loading psycopg2 module: libpq.so.5: failed to map segment from shared object: Permission denied" while running the url, any solution? thanks Harish Bhat --~--

Re: Django-Apache configuration in Fedora 9

2008-09-23 Thread Graham Dumpleton
On Sep 24, 3:27 pm, Harish <[EMAIL PROTECTED]> wrote: > hi folks, > >         i am trying to configure a project which is developed using > django. > Now I am trying to host it in web server (using Apache2), which is > running in  Fedora 9. > > I tried with the instruction given in the following

Django-Apache configuration in Fedora 9

2008-09-23 Thread Harish
hi folks, i am trying to configure a project which is developed using django. Now I am trying to host it in web server (using Apache2), which is running in Fedora 9. I tried with the instruction given in the following link, http://www.howtoforge.com/how-to-install-django-on-fedora9-apa

Re: Apache configuration

2007-05-22 Thread Daniel Ellison
On Monday 21 May 2007 14:27:02 dystopia wrote: > I'm worried that I haven't set this up properly, because in effect the > application (which is for test purposes) should really run off the > main domain rather than requiring to be accessed through a folder. Alternatively, you could set up a tempo

Re: Apache configuration

2007-05-22 Thread Vance Dubberly
James, If I get you right the request path is ^mysite/admin/ so ^admin shouldn't work. You've got to update all your top level urls to ^mysite/module_name as such (r'^mysite/admin/', include('django.contrib.admin.urls')), Also the stuff in the virtual host isn't neccesary if you are mounti

Apache configuration

2007-05-21 Thread dystopia
I've got this in my Apache httpd.conf: SetHandler python-program PythonHandler django.core.handlers.modpython PythonPath "['/var/www/dev.django.exampleurl.co.uk/'] + sys.path" SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On I also have this set up in my vhosts: