REDIRECT
gaeasiankom at gmail.com
gaeasiankom at gmail.com
Thu Mar 19 00:30:59 EDT 2009
On Mar 18, 5:21 am, Tino Wildenhain <t... at wildenhain.de> wrote:
> gaeasian... at gmail.com wrote:
> > Hi !
>
> > I'm new to Python. I'm having some difficulties to redirect the pages
> > using python. Every time when I redirect, the URL changed accordingly.
>
> > (Example : from http://localhost:9999 to http://localhost/hello.py?name='J')
>
> > What's the Python way of implementing this ? Can anyone help me out on
> > this ?
>
> What did you try so far? Hint: the redirect is done via Location:
> HTTP-Header. You can check all details in rfc2616, this is independend
> from the language you would use. Everything else depends on the
> framework you use.
>
> Regards
> Tino
>
> smime.p7s
> 4KViewDownload
Hi Tino !
Thanks for your reply. Currently I'm using :
1. Eclipse SDK, Version: 3.4.1 (I have set up python plug in - I used
PyDev)
2. Python, Version 2.5.4
3. GoogleAppEngine, Version 1.1.9
(webapp - framework)
What actually I'm try to do is :
I'm having a Login page which developed in HTML. When I click on the
"Login" button I want the page to validate (at datastore of google
app) using python and redirect to other HTML page. As what I
understand, Python is the only language that supported by the
GoogleApps.
I did try by using below lines :
print 'Status: 302 Moved Temporarily'
print "Location: test.html"
print 'Pragma: no-cache'
print 'Content-Type: text/html'
but error thrown as:
Not found error: /test.html did not match any patterns in application
configuration.
Please advice me on this.
your cooperation higly appreciated.
note : I'm not able to view the file that u attched in your previous
mail (smime.p7s).
Regards,
J
More information about the Python-list
mailing list