Hello.
I'm trying to get web.py working with mod_wsgi which i just installed
on my server. I ran a simple 'hello world' with wsgi and it seems to
be working, taken from (http://code.google.com/p/modwsgi/wiki/
ConfigurationGuidelines).
I'm using apache 2.2 and python 2.4.4.
Now I'm trying to get hello.py working with web.py. I have no problems
when I run the code using the built-in webserver ('python hello.py')
but if I try to run the script using wsgi, I get Application Errors.
I've looked in the apache logs and here's what I found:
File "/home/chris/public_html/hello.py", line 1, in ?
mod_wsgi (pid=6377): Exception occurred within WSGI script '/home/
chris/public_html/hello.py'.
mod_wsgi (pid=6377): Target WSGI script '/home/chris/public_html/
hello.py' cannot be loaded as Python module.
The code I'm using for hello.py is the exact same found on the
frontpage of http://webpy.org/ with the addition of the line:
application = web.wsgifunc(web.webpyfunc(urls, globals()))
Perhaps I'm missing something in wsgi, or maybe web.py? If anyone
could help, I would greatly appreciate it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---