473,549 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
+ 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 1279

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

Similar topics

21
6499
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 Workshop program: hcw.exe that's included with Visual Basic. This exact same file compiled perfectly with no notes, warnings or errors prior to...
6
4312
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 result in any way. Who can help me, I thank you very very much. list.cpp(main program)...
3
3332
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 numarray, help gives unhelpful responses:
1
1260
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 by standard python hosters?
1
1408
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 simple CGI. Please don't ask why i want a python webserver for a ruby application. I just need it.
0
1027
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 from the browser and passes them to the web app over fcgi. Usaually this is done by Apace or Lightttpd, but I'm trying to reduce dependancies, so a...
7
2450
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 prints when the program is loaded and when it gets a request. And indeed, the program gets reloaded for each HTTP request. Something is probably...
0
808
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
1047
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
7720
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7475
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7812
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6048
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5372
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5089
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1944
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 we have to send another system
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
766
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.