Likely it's an issue with the instance of python that mod_python is 
complied to, do you have more than one version of python?

Joshua Jonah wrote:
> That error looks like you cant import django. weird.
>
> jpittet wrote:
>   
>> I have everything running except mod_python on apache.
>>
>> I can import django in the Python interpreter. I can even run python
>> manage.py runserver but as soon as I put it in apache, it gives me
>> grief.  This is a
>> Centos 5
>> Python 2.4
>> Apache 2.2
>> mod_python.i386 3.2.8-3.1
>> Django SVN at 1.0 rc_1
>>
>> Here is the error message:
>>
>> --------------------------------------------------------------------------------------------------
>> Mod_python error: "PythonHandler django.core.handlers.modpython"
>>
>> Traceback (most recent call last):
>>
>>   File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
>> 287, in HandlerDispatch
>>     log=debug)
>>
>>   File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
>> 461, in import_module
>>     f, p, d = imp.find_module(parts[i], path)
>>
>> ImportError: No module named django
>> --------------------------------------------------------------------------------------------------
>>
>> vhost.conf
>> --------------------------------------------------------------------------------------------------
>>     <Location "/mysite/">
>>      SetHandler python-program
>>
>>      PythonHandler django.core.handlers.modpython
>>      SetEnv DJANGO_SETTINGS_MODULE mysite.settings
>>      PythonOption django.root /mysite
>>
>>      PythonDebug On
>>
>>      PythonPath "['/var/www/site/htdocs'] + sys.path"
>>
>>    </Location>
>> --------------------------------------------------------------------------------------------------
>>
>>
>>
>>
>>
>> Any ideas what I did wrong?
>>
>>
>>     
>>   
>>     
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to