On Dec 9, 5:12 pm, slatvick <[EMAIL PROTECTED]> wrote:
> But current problem that index.html does not load automatically and
> you need to write full domain path :www.yourdomain.com/index.html
In app.yaml you specify which script will execute (for example,
index.py). Inside index.py you need to return a 303 Redirect as a
response, telling the user's browser to go to "www.yourdomain.com/
index.html". How you do this will depend on which web framework you
are using. In web2py, just use the redirect() global function.
After a quick search, here's a hint on how it might work in Django:
response = HttpResponseRedirect("www.yourdomain.com/index.html")
For the full documentation:
http://docs.djangoproject.com/en/dev/ref/request-response/
Here's the documentation for plain Google App Engine:
http://code.google.com/appengine/docs/webapp/redirects.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---