I've had a very similar problem and it turned out to be a permission problem. I had used svn to get the latest django in my home directory and then linked django from there to /usr/lib/python2.4/site-packages. The apache user had read/execute privileges up the /usr/lib pathway to django/core/handlers/modpython.py but not through /home/user. So I had add read/execute permission to my home directory (luckily no one else is on this server) and then it started working. You may wish to check the permissions all the way through the /home directories to make sure the apache user can get to modpython.py.
On Thu, Jun 26, 2008 at 12:34 PM, Adi <[EMAIL PROTECTED]> wrote: > > I get the following error when I hit my website > http://ipaddress/enterathletes/ > > DocumentRoot: '/var/www/html' > > URI: '/enterathletes/' > Location: '/enterathletes/' > Directory: None > Filename: '/var/www/html/enterathletes' > PathInfo: '/' > > Phase: 'PythonHandler' > Handler: 'django.core.handlers.modpython' > > Traceback (most recent call last): > > File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line > 1537, in HandlerDispatch > default=default_handler, arg=req, silent=hlist.silent) > > File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line > 1202, in _process_target > module = import_module(module_name, path=path) > > File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line > 304, in import_module > return __import__(module_name, {}, {}, ['*']) > > ImportError: No module named django.core.handlers.modpython > > In my /usr/lib/python2.5/site-packages, I have > lrwxrwxrwx 1 root root 34 Jun 25 13:52 django -> /home/adi/django- > trunk/django/ > > In my python.conf apache conf file, > > LoadModule python_module modules/mod_python.so > > # Override type-map handler for /var/www/manual > <Directory "/var/www/manual/mod/mod_python"> > <Files *.html> > SetHandler default-handler > </Files> > </Directory> > > <Location "/enterathletes/"> > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > PythonDebug On > PythonPath "['/home/adi/Enterathletes_py/src','/home/arustgi/ > django-trunk'] + sys.path" > </Location> > > I was able to do > python manage.py validate > and > python manage.py load data > from '/home/adi/Enterathletes_py/src/mysite > > What am I missing? What should I check? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---