Thank you Alex! It's curious... I had exactly the same configuration and I'm sure I tried "application = myapp.wsgifunc()" before, but somehow it didn't work... Now it works perfect.
Thanks again! Luis On 7 mar, 10:40, Alex Greif <[EMAIL PROTECTED]> wrote: > I checked out the webpy.dev branch (I assume you mean this with 0.3) > and did the following: > > 1) apache config in httpd.conf > WSGIPythonPath "/Users/agreif/pp/webpy_test/helloworld:/Users/agreif/ > pp/webpy_test/tickets" > # see also:http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines > WSGIScriptAlias /foo "/Users/agreif/pp/webpy_test/helloworld/ > helloworld_controller.py" > > 2) my lloworld_controller.py > > #!/usr/bin/env python > import sys > import web > > db = web.database(dbn='postgres', user='webpy', pw='webpy', > db='webpydb') > > urls = ( > '/(.*)', 'hello' > ) > > class hello: > def GET(self, name): > web.header("Content-Type","text/html; charset=utf-8") > result = '<html><head></head><body>' > ... > return result > > myapp = web.application(urls, globals(), autoreload=True) > application = myapp.wsgifunc() > > if __name__ == "__main__": > myapp.run() > > Alex. > > -- > [EMAIL PROTECTED] > > On 07.03.2008, at 14:21, [EMAIL PROTECTED] wrote: > > > > > I also want to know how to run version 0.3 with wsgi ( actually with > > mod_wsgi ). > > The old way doesn't work anymore and I couldn't find any info about > > the current changes... > > > Luis --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
