The Python library is provided by the PyFacebook client implementation from and you will need to install it /opt/local/lib/python2.4/site-packages/facebook from a straight SVN checkout (svn checkout http://pyfacebook.googlecode.com/svn/trunk/ pyfacebook).
/home/xxxxxxxx/myapps#LoadModule python_module lib/httpd/mod_python.so
and change to
LoadModule python_module lib/httpd/mod_python.so
<Location "/mysite/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On PythonPath "['/home/xxxxxxx/myapps'] + sys.path" </Location>
ssh xxxxxxxx@xxxxxxxx.fb.joyent.us
sudo nano /opt/local/etc/httpd/includes/dso.conf
#LoadModule python_module lib/httpd/mod_python.so
LoadModule python_module lib/httpd/mod_python.so
sudo nano /opt/local/etc/httpd/virtualhosts/xxxxxxxx.conf
which will look something like this:
<Location "/mysite/"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonDebug On PythonPath "['/home/xxxxxxx/myapps'] + sys.path" </Location>
sudo svcadm restart apache
sudo svcadm enable memcached
svcs -x