On Feb 4, 9:52 pm, BlackKnight <sijojamesj...@gmail.com> wrote:
> http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives
>
> have you added this in apache conf,
>
> <Directory /path/to/wsgi-scripts>
> SetHandler wsgi-script
> Options ExecCGI
> </Directory>

No, I do not have that, but I do have:

WSGIScriptAlias / /usr/local/myapp/scripts/myapp.wsgi

Which is what I have on all the other systems I've deployed this app
on.

But I did try removing that line, and adding what you suggested - that
made the error go away, but my app does not work - i.e. my app's URLs
are not recognized or resolved. With that line left in and the
additional Directory directive, I get the same error.


>
> On Feb 5, 5:53 am, "larry.mart...@gmail.com" <larry.mart...@gmail.com>
> wrote:
>
> > I am trying to deploy my django app on a newly setup CentOS box. I
> > have successfully deployed it on ubuntu and on a Mac.
>
> > I get these errors in the apache error log:
>
> > [Sat Feb 04 17:43:28 2012] [error] [client 127.0.0.1] mod_wsgi
> > (pid=13616): Target WSGI script '/usr/local/myapp/scripts/myapp.wsgi'
> > cannot be loaded as Python module.
> > [Sat Feb 04 17:43:28 2012] [error] [client 127.0.0.1] mod_wsgi
> > (pid=13616): Exception occurred processing WSGI script '/usr/local/
> > myapp/scripts/myapp.wsgi'.
> > [Sat Feb 04 17:43:28 2012] [error] [client 127.0.0.1] Traceback (most
> > recent call last):
> > [Sat Feb 04 17:43:28 2012] [error] [client 127.0.0.1]   File "/usr/
> > local/myapp/scripts/myapp.wsgi", line 8, in <module>
> > [Sat Feb 04 17:43:28 2012] [error] [client 127.0.0.1]     import
> > django.core.handlers.wsgi
> > [Sat Feb 04 17:43:28 2012] [error] [client 127.0.0.1] ImportError: No
> > module named django.core.handlers.wsgi
>
> > From command line python the import works:
>
> > $ python
> > Python 2.6.6 (r266:84292, Dec  7 2011, 20:38:36)
> > [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
>
> > >>> import django.core.handlers.wsgi
>
> > I also have this warning in the apache log:
>
> > [Sat Feb 04 17:41:12 2012] [warn] mod_wsgi: Compiled for Python/2.6.2.
> > [Sat Feb 04 17:41:12 2012] [warn] mod_wsgi: Runtime using Python/
> > 2.6.6.
>
> > I've checked permissions, and wsgi.py and every dir in the path to it
> > is 755.
>
> > Anyone know why my app isn't finding it?
>
> > TIA!
> > -larry

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to