473,486 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

FCGI Help?

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
Jul 18 '05 #1
0 1272

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
6482
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an rtf file created in word. I used the Help...
6
4298
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
3
3316
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright", "credits" or "license" for more information. >>> With...
1
1250
by: walterbyrd | last post by:
As I understand it, django works with fcgi, but it's a pain to setup. Are there any python MVCs that are optimized to work without mod_python. Or any other module that isn't likely to be loaded...
1
1405
by: llothar | last post by:
Hello, as the subject says, for an embedded application i need a 100% pure python webserver that can talk to a FCGI process (which runs ruby on rails). Of couse it also must be able to use...
0
1017
by: thorley | last post by:
Does any one know of a fcgi SEVER implementation for python? I've seen lots of great stuff for the client/application side, but not a server. By server, I mean the program that accepts requests...
7
2443
by: John Nagle | last post by:
I'm converting a web app from CGI to FCGI. The application works fine under FCGI, but it's being reloaded for every request, which makes FCGI kind of pointless. I wrote a little FCGI app which...
0
798
by: bryan rasmussen | last post by:
As per the subject, anyone know of a version of fcgi.py out there somewhere that works on windows yet. Best Regards, Bryan Rasmussen
0
1046
by: Joshua Kugler | last post by:
bryan rasmussen wrote: They might have ported a version for Python 2.6. Versions <= 2.5 didn't have a socket.fromfd() on Windows, so FCGI and SCGI wouldn't work. j
0
7099
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7319
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5430
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.