[mod_python] redirects with cgihandler

Shuying Wang shuying at gmail.com
Wed Apr 6 00:59:26 EDT 2005


Hi,

I'm using the cgihandler with mod_python3.0.3, Apache2.0.46 and
python2.2.3. I would like to know how I'm meant do url redirections.
My code looks something like this:

try: 
     .....
      print "Location: %s\n" % url 
except:
        pass
which works as a regular CGI script (ie. it redirects to the specified
url). It's definitely not hitting the exception and  but redirection
isn't happening either.

 Thanks in advance,
Shuying


More information about the Mod_python mailing list