Where you have Django installed at:

  /Library/Python/2.6/site-packages/django

is actually the location where Apple supplied Python site-packages
stuff goes and not that I know of the MacPorts Python stuff. The
MacPorts stuff would go under /opt/local/ somewhere.

So, it seems you have mod_wsgi.so which is finding and using MacPorts
Python, but that Django was installed for Apple supplied Python and
not MacPorts.

Do you really need to use MacPorts Python. If you do not, then grab down:

  
http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-macosx106-ap22py26-3.3.so

Copying it to the Apache modules directory and renaming it to just mod_wsgi.so.

That is a precompiled mod_wsgi.so for Apple supplied Apache/Python.

When running mod_wsgi it should then use Apple supplied Python and
would find your Django from Apple supplied Python site-packages which
is /Library/Python/2.6/site-packages.

All up I would say you installed MacPorts Python but then never had it
in your path and so you have actually been using Apple Python all
along.

Graham

On 21 January 2011 13:11, cocobuster <[email protected]> wrote:
> Terminal>>otool -L /usr/libexec/apache2/mod_wsgi.so
>
> /usr/libexec/apache2/mod_wsgi.so:
>     /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python
> (compatibility version 2.6.0, current version 2.6.0)
>     /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
> 125.2.1)
>
> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
> (compatibility version 150.0.0, current version 550.42.0)
>
> --
> 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