I tried to get django working using mod_python but no dice yet. has anyone successfully got it working using mod_python?
Here is what i have done so far after reading through other threads specifically Mophilly's post.
I have added this fragment to the 80AddHandler00 template under /etc/e-smith/templates/etc/httpd/conf/httpd.conf/
<Location "/mysite/">
SetHandler python-program
PythonPath "['/usr/local/mydjangoproject'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mydjangoproject.settings
PythonDebug On
PythonAutoReload On
</Location>
And then ran the commands below
expand-template /etc/httpd/conf/httpd.conf
/etc/init.d/httpd-e-smith restart
I get the following error when I try to access
http://mysmeserver/mysite/Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 287, in HandlerDispatch
log=debug)
File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 454, in import_module
f, p, d = imp.find_module(parts[i], path)
ImportError: No module named django
What am I doing wrong. Please help
Thanks!!