MacOS X 10.6.6 already supplied Python 2.6, there was no real need to
install MacPorts Python.

When you build mod_wsgi, did you use --with-python to have it use
MacPorts? What other 'configure' options did you use when building
mod_wsgi.

Even if you did tell it to use MacPorts Python when building mod_wsgi,
it isn't and that is because of flaws in some MacPort Python versions.
Before I tell you the solution for that, tell me what 'configure' line
you used when building mod_wsgi so know whether it is relevant or not.

Also provide the output from:

  otool -L /usr/libexec/apache2/mod_wsgi.so

Graham

On 21 January 2011 12:47, cocobuster <[email protected]> wrote:
> I am not using a virtual environment, at least I think. I have previously
> installed django using macport and my django
> libs resides under /Library/Python/2.6/site-packages/django
>
> As a test, I went in my app dir /Users/corinemorin/www/webapps/mysite, and I
> ran a python shell, from there I was able
> to import django... but somehow from django.wsgi it not finding the module.
>
>>>Do you have multiple Python installations on your system?
> yes there is python2.3, python2.5, python2.6
>
>>>Apache/mod_wsgi may be compiled against and using different one to
> Well... I have installed python2.6 and using the default Mac apache which
> might you the default python installation which I am
> guessing would be Python2.5.
> How can I make sure Apache is using my latest python installation
> "Python2.6"?
>
>>>When you installed Django, did Django get installed with permissions such
>>> that other users can access it?
> How can I tell? I used macport
>
>>>what you have been using with development server.
> For now all I have been using to run django was the command >>python
> manage.py runserver, with url=127.0.0.1:8000
>
>>> if Django has restrictive permissions the Apache user will not be able to
>>> find it.
> Where can I verify this? and add appropriate fix?
>
> Corine
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/modwsgi?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to