Hi, I have webpy and mod_wsgi working fine with the following code:

# -*- coding: utf-8 -*-
import web

urls = (
    '/(.*)', 'hello'
)

class hello:
    def GET(self, name):
        if not name:
            name = 'World'
        return 'Hello, ' + name + '!'

if __name__ == "__main__":
    app.run()


app = web.application(urls, globals(), autoreload=False)
application = app.wsgifunc()

but when I try to use Genshi (as per this page: 
<http://webpy.org/src/genshi>) and change the code to this:

# -*- coding: utf-8 -*-
 
import web
from web.contrib import template

render = template.render_genshi(['./templates/']) 
 
urls = (
    '/', 'index'
)
 
class index:
    def GET(self):
        name = 'John Doe'
        return render.index(name=name)
 
if __name__ == "__main__":
        app.run()

app = web.application(urls, globals(), autoreload=False)
application = app.wsgifunc()

the browser says "not found".

The apache logs don't seem to be reporting any errors right now (the were 
before, I'll keep trying).

Also, what is the correct way to use the webpy debugger when using apache 
to serve the pages?

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/-/K4GbrnXjpWAJ.
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.

Reply via email to