>myapps = ['app'] # assuming your app is called "app"

if my app name is "mycoolapp" it usually is the domain I host it:
mycoolapp.com

so I want to access it like:

mycoolapp.com/contact_us
mycoolapp.com/terms
etc.

How to do that efficiently? I am hard coding the link to redirect to 
"default" counterpart. Also running on GAE I see in the logs all routes 
definitions execute every time I hit a page. Could it they be precompiled? 
There is a no need to be dynamic at run-time?

Also I have this issue:

for example I am here:
mycoolapp.com, then hit the mycoolapp.com/contact_us
and routes forward to default/contact_us which is good.
Then after filling the form in mycoolapp.com/contact_us
I want to redirect back to mycoolapp.com, I have a hard coded
rule in routes which redirects '/' to default/index. I got the redirect
but at the browser address I still see mycoolapp.com/contact_us,
it should be mycoolapp.com. If I do browser refresh this causes 
the browser to go back to mycoolapp.com/contact_us.

How to solve it?










Reply via email to