I am going to setup Django with mod_python and Apache on Linux but when I try to use a script from a browser I will get the error:
################## 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 File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 461, in import_module ImportError: No module named django ################# I can import django easily directly from Python shell.My setting is: PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin:/home/django_src/django/bin HOME=/root PYTHONPATH=:/home/django_src:/home/django_projects LOGNAME=root When tested separately , mod_python works Ok too. My httpd.conf looks like this .... ... <VirtualHost *> ServerName www.eim.com SetHandler python-program PythonPath "['/home/django_projects/'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mimiproject.settings PythonDebug On SetEnv DJANGO_SETTINGS_MODULE mimiproject.settings Alias /Media/ "/home/TEMPLATESMIMI/Static/" <Location "/Media/"> SetHandler None </Location> </VirtualHost> ... ... Or must I change setting of User httpd in httpd.conf ? Thank you for reply L. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---