not sure if this is related with mod_wsgi i got an error

Exception Type:         ImportError
Exception Value:        No module named myapp.views.hometest





On Mon, Aug 31, 2009 at 1:39 PM,
[email protected]<[email protected]> wrote:
> I got it figured. I had misspelled project name. It works now.
>
>
> Thanks
>
> On Mon, Aug 31, 2009 at 9:28 AM,
> [email protected]<[email protected]> wrote:
>> I am using 2.5 , installed from source.
>>
>> Here is the error info:
>>
>> [Mon Aug 31 16:23:27 2009] [error] [client 159.188.188.85] Target WSGI
>> script not found or unable to stat: /usr/local/django/mydomain
>>
>>
>>
>>
>> On Sun, Aug 30, 2009 at 10:36 PM, Graham
>> Dumpleton<[email protected]> wrote:
>>>
>>> 2009/8/31 weiwei <[email protected]>:
>>>>
>>>> here is my settings:
>>>> ---------------------------------------------------------------------
>>>> <VirtualHost *:80>
>>>>        ServerName   mydomain.com:80
>>>>        ServerAlias  www.mydomain.com *.mydomain.com
>>>>        UseCanonicalName Off
>>>>        ServerAdmin  "[email protected]"
>>>>        DocumentRoot /var/www/hosts/mydomain.com/httpdocs
>>>>        WSGIScriptAlias / /usr/local/django/mydomain/apache/
>>>> django.wsgi
>>>> <Directory /usr/local/django/mydomain/apache>
>>>>        Order deny,allow
>>>>        Allow from all
>>>> </Directory>
>>>> </VirtualHost>
>>>> ----------------------------------------------------------------------------------
>>>> and wsgi script:
>>>>
>>>> -------------------------------------------------------------------------
>>>> import os, sys
>>>> sys.path.append('/usr/local/django')
>>>> sys.path.append('/usr/local/django/mydomain')
>>>> os.environ['DJANGO_SETTINGS_MODULE'] = 'mydomain.settings'
>>>>
>>>> import django.core.handlers.wsgi
>>>>
>>>> application = django.core.handlers.wsgi.WSGIHandler()
>>>> ----------------------------------------------------------------------------------
>>>>
>>>> I am on fedora11.
>>>>
>>>> Thanks for any help.
>>>
>>> First guess would be that you are using an old version of mod_wsgi.
>>> The latest is 2.5, what are you using?
>>>
>>> There was a configuration corruption issue that might cause this
>>> specific problem. It was fixed in 2.3 or 2.4.
>>>
>>> So, indicate what version of mod_wsgi you are using and I want to see
>>> the full error messages from the Apache error logs around when that
>>> occurred.
>>>
>>> Graham
>>>
>>> >>>
>>>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to