FCGI Help?

K

Kevin T. Ryan

Hi All -

I'm trying to develop web applications using python / Cheetah. I'm also
trying to experiment with lighttpd (see www.lighttpd.net), which supports
fast-cgi. So, I downloaded Robin Dunn's fcgi.py file
(http://alldunn.com/python/fcgi.py), and everything is up and running
nicely. Except, I'm a complete dummy - totally new to fast-cgi
development. Therefore, when I run lighttpd and direct it to use fcgi as
my fast-cgi app, it starts the _test() function w/in fcgi.py which simply
prints some nice information about my request / environment.

I then tried to develop my own app/server that inherits from fcgi, and then
maps uri requests to my classes (for example, www.mysite.com/users/new_week
maps to class user(), method new_week()). I *somewhat* got this working
(at least, it doesn't shut down on me immediately, but doesn't do much else
either)...but every request has to have a file associated with it (which
obviously isn't the case since I'm trying to map into a class/method, not a
file). So it doesn't work :(

Anyway, I'm completely frustrated on how to use fast-cgi. I've also checked
out fast-cgi.com, but they only seem to give trivial examples on how to use
fast-cgi (unless I didn't search / read enough, but I've been looking for a
few days on and off).

My questions are:

1. Can anyone point me to a good resource on how to create fast-cgi apps
(real world examples??) or how to use fcgi.py properly?

2. I've thought about creating a fast-cgi app that simply spawns python
interpreters and then runs the scripts from the request uri - is this
possible / easy to do?

I know I could use Apache's mod_python or something similar, but I'm clearly
a glutton for punishment :) I'm also hoping to use something a little less
daunting than Apache if possible.

Thanks for your help, and sorry for such a long post!

Kevin T. Ryan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top