Hello, I'm trying to install Django with Mod_Python on Leopard. I've been through the process on Linux and Windows several times without many issues, but on Leopard I've come up against a wall and I don't know what else to check. OS X is the os I have least experience with.
I wanted to install the newest versions of Python and Apache instead of using the versions that come with OS X. That went fine. I have django checked, and symlinked from my site-packages directory. It runs fine on the development server. If I type python at the terminal, I can import Django without issue. Apache is running as well. I built Apache and Mod_python using the instructions here: http://cavedoni.com/2005/django-osx I have Apache calling a test handler using configurations in an .htaccess file, so something is right there. However, after fighting with a "forbidden" message (and winning), I get the message that I can't import django.core.handlers.modpython when I use the configuration in the cavedoni.com tutorial. I had thought that perhaps Mod_python wasn't linked to the correct version of Python, so I tried to build it again (first clearing the configuration with distclear). But I'm getting the same problem I tried to add django to the Python Path using the PythonPath declaration in my .htaccess file, but pointing it to the symlink and actual code checkout gives me the same results. My path looks like this when output from my test mod_python handler: /Users/jdonato/Documents/code-checkouts/django-trunk/django /Users/jdonato/Documents/code-checkouts/django-trunk /Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat- darwin /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat- mac /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat- mac/lib-scriptpackages /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib- dynload /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/PIL Which is identical to what I see when I open python from the command line and view sys.path, except here I have the two extra django directories that I'm adding in the config. I saw this: http://groups.google.com/group/django-users/browse_thread/thread/1cc6ad68d63cb61d?fwc=1 but I tried changing my permissions and there's no change. My .htaccess file looks like this: AddHandler python-program .py PythonHandler mptest PythonDebug On PythonPath "['/Users/jdonato/Documents/code-checkouts/django-trunk/ django', '/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django'] + sys.path" But note that I've tried similiar things in the main apache configuration file. Right now, for testing purposes, I've removed the .htaccess file, and changed my main conf file to: <Directory /usr/local/apache2/htdocs/test> AddHandler python-program .py AllowOverride FileInfo PythonHandler mptest PythonDebug On PythonPath "['/Users/jdonato/Documents/code-checkouts/django-trunk/ django','/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/django'] + sys.path" </Directory> In mptest, I try to import Django, but get:ImportError: No module named django If any one has any ideas, I'm all out myself and would gladly try anything. Thank you for reading this long post. Justin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

