Hi I'm having some problems setting up webpy on mac OS X. I've got webpy
and mod_wsgi installed correctly but when I go to
http://localhost/test/code.py it just shows the code in the browser instead
of hello, world.
This is what i've got in my httpd.conf file:
LoadModule wsgi_module libexec/apache2/mod_wsgi.so
WSGIScriptAlias /test /Users/Administrator/web/code.py/
Alias /test /Users/Administrator/web/
AddType text/html .py
<Directory /Users/Administrator/web/>
Options Indexes FollowSymLinks
Order deny,allow
Allow from all
</Directory>
and in my code.py file I have:
import web
urls = (
'/.*', 'hello',
)
class hello:
def GET(self):
return "Hello, world."
application = web.application(urls, globals()).wsgifunc()
Any help would be greatly appreciated.
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/webpy/-/2Al6uN3EiIEJ.
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.