4
votes
1answer
122 views

Does Apache really “fork” in mod_php/python way for request handling?

I am a dummy in web apps. I have a doubt regaring the functioning of apache web server. My question is mainly centered on "how apache handles each incoming request" Q: When apache is running in the ...
1
vote
4answers
1k views

Calling a Python script from a webpage

I've searched around for a while but I can't find a concise explanation of how to do what I want. I have a fairly complex program which I'd like to make a simple web interface for. Ideally there'll ...
0
votes
0answers
217 views

How to load data from a JSON generated via mod-python

I'm having some trouble while loading JSON data from a cgi written in python. The python script sounds like this: def get_data(req): #create a dictionary to be written as json ...
0
votes
1answer
181 views

How to make mod_python to wait for the updated text file to read?

import cgi def fill(): s = """\ <html><body> <form method="get" action="./show"> <p>Type a word: <input type="text" name="word"> <input type="submit" ...
23
votes
2answers
20k views

Differences and uses between WSGI, CGI, FastCGI, and mod_python in regards to Python?

I'm just wondering what the differences and advantages are for the different CGI's out there. Which one would be best for python scripts, and how would I tell the script what to use?
2
votes
1answer
4k views

cgi.FieldStorage always empty - never returns POSTed form Data

This problem is probably embarrassingly simple. I'm trying to give python a spin. I thought a good way to start doing that would be to create a simple cgi script to process some form data and do some ...
2
votes
1answer
812 views

Alternatives to mod_python's CGI handler

I'm looking for the simplest way of using python and SQLAlchemy to produce some XML for a jQuery based HTTP client. Right now I'm using mod_python's CGI handler but I'm unhappy with the fact that I ...