Redirect with google app engine
Hi My problem is I want to make a redirect and "hide" the actual address so I want to enable and show this address:
/saopaulo
The actual address the response has is
/li?lat=-23.33&lon=-46.38
but I don't want the user the view that address, only the view and display开发者_如何学编程 in the address bar /saopaulo and similar for other and more cities. How can I do this with app engine?
Thank you
This doesn't actually require redirections.
In your code, when you get a request for /saopaulo simply call the code which you would call if you got the request for /li?lat=-23.33&lon=-46.38. You could store these city name -> lat&lon mappings in your code as a dictionary, or make a model for them.
精彩评论