[mod_python] Simple 'redirect' question

rpinder rpinder at usc.edu
Sat Jun 7 08:36:06 EST 2003


Thanks Dustin,

So you define  HTTP_MOVED_TEMPORARILY  to be the string constant of the 
actual url ??

Thanks
r

Dustin Mitchell wrote:

>On Sat, Jun 07, 2003 at 07:48:35AM -0700, rpinder wrote:
>  
>
>>Rather than load up the end of my python script with html, how can I 
>>redirect the users browser out of the script, and to an html file 
>>located in another directory within my htdocs directory structure ??
>>    
>>
>
>Send a "Location" header and return HTTP code 302, a.k.a.
>
>  return apache.HTTP_MOVED_TEMPORARILY
>
>or
>
>  raise apache.SERVER_RETURN, apache.HTTP_MOVED_TEMPORARILY
>
>Dustin
>
>  
>



More information about the Mod_python mailing list