I had not heard of WSGI or mod_wsgi until today. My last encounter with Web applications was 10 years ago when I modified Bugzilla for internal use at my previous employer, and that was Perl rather than Python. The first Roundup installation document I saw called for mod_python, which does not compile on Slackware 14.0. A colleague pointed out a newer copy of the install doc which provided the information that WSGI can be used instead of mod_python in the following way: *Configure a Web Interface* **
There are five web interfaces to choose from: 1. *web server cgi-bin*<http://www.roundup-tracker.org/docs/installation.html#web-server-cgi-bin> 2. *cgi-bin for limited-access hosting*<http://www.roundup-tracker.org/docs/installation.html#cgi-bin-for-limited-access-hosting> 3. *stand-alone web server*<http://www.roundup-tracker.org/docs/installation.html#stand-alone-web-server> 4. *Zope product - ZRoundup*<http://www.roundup-tracker.org/docs/installation.html#zope-product-zroundup> 5. *Apache HTTP Server with mod_python*<http://www.roundup-tracker.org/docs/installation.html#apache-http-server-with-mod-python> 6. *WSGI handler*<http://www.roundup-tracker.org/docs/installation.html#wsgi-handler> {jump to option 6 -- and the miscount is typical of the documentation quality} *WSGI Handler* The WSGI handler is quite simple. The following sample code shows how to use it: from wsgiref.simple_server import make_server # obtain the WSGI request dispatcherfrom roundup.cgi.wsgi_handler import RequestDispatchertracker_home = 'demo'app = RequestDispatcher(tracker_home) httpd = make_server('', 8917, app)httpd.serve_forever() To test the above you should create a demo tracker with python demo.py. Edit the config.ini to change the web URL to “*http://localhost:8917/*<http://localhost:8917/> ”. That's it. Everything they have to say on the topic. No mention of *where*to put this sample code, or make Apache aware of its existence. Nothing. I've been reading the WSGI installation and configuration documentation on the code.google.com wiki, and it's very nice as far as it goes, but I can't see how to tie up the loose ends and make the Roundup code work with the newly installed mod_wsgi.so module. Can anyone offer a quick&dirty suggestion to move me forward? Thanks, Rich Alderson -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
