I Can’t Get Mod_Python and Django Working on my Mac

For those that don’t know, Mac OS X includes a lot of open source software by default, including, for the purposes of this post, Apache and Python. The included Apache is 1.3 and Python is 2.35 in Mac OS 10.4, to be specific. Both, however, are out of date. This shouldn’t be a problem, but I cannot get mod_python working on Mac OS 10.4 with Apache 1.3 and Python 2.35. The current version of mod_python that is compatible with Apache 1.3 is 2.7.11.

After spending quite awhile trying to get mod_python to work on my Mac, I have concluded that it will not. It is possible that I am doing something wrong. I think that if I upgraded Apache and Python, it would be possible, but I really don’t want to override the default systems on my Mac.

All that aside, you don’t need mod_python to be able to run Django locally on the Mac. So I went through the process to install Django. Once that was done I tested it, and it tells me it is installed. But, once I try to run the Django tutorial, it fails.

I have tried this on 2 different Macs, and it failed on both of them. So I have given up until someone can point out what I did wrong or what I need to do to fix it. Even though the Mac has Python on it, for some reason neither mod_python or Django will run on it.