google-app-engine Quick start with Users Python API, App Engine Authentication App Routing [urls.py]


Example

I used for this example webapp2 to cover the routing.

from webapp2_extras.routes import RedirectRoute as Route

Import from views:

from views import MainPage

MainPage is the handler set into root "/":

urlpatterns = [
   Route('/', MainPage),
]