Python on the web

While PHP is extremely easy to use, I find Python hard to use for rather simple tasks. I need helping using a special form of a URL. For example, say I want to use the url http://www.mydomain.com/serve?biography...how could I do that. In PHP, you could grab the query string and put in a variable and then redirect. How can I do all this with Python? My web server only has Python 1.5.2, so I'm sure that must limit me in some ways.

To sum things up:

-Includes. What is the python equivalent to include(). Is it just import whatever ?

-Redirection. How can I redirect a user automatically to another page.

or you can use something like Spyce [spyce.sourceforge.net] which allows you to use Python in the same way as PHP. You can run it as CGI, on mod_python or FastCGI to get a big speed boost. The drawback is you have a 0.1% chance that your host has spyce installed and you'd probably need to convince them to install it, or you can find a host that has spyce installed.

Hahaha, ok id have to agree there thats pretty moronic. If you can get it though, i would get the latest version mod_python with PSP (included) which is basically Python in the style of ASP/PHP/JSP... you get the idea .

It's still pretty young but ive heard some good things so its worth considering.

On the plus side they cant just turn around and say "we have mod_python x.xx". Speaking of which, i dont think its a good idea for them to still have Python 1.52, and since it would like all of 30 min to install