Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.
Stay organized with collections Save and categorize content based on your preferences.

google.appengine.ext.admin_redirect.main module


Main module for admin redirect.

To use, add this to app.yaml:

builtins: - admin_redirect: on



Create new WSGIApplication and register all handlers.


an instance of webapp.WSGIApplication with all mapreduce handlers registered.

class google.appengine.ext.admin_redirect.main.RedirectToAdminConsolesource

Bases: google.appengine.ext.webapp._webapp25.RequestHandler

Used to redirect the user to the appropriate Admin Console URL.


Handler to redirect all /_ah/admin.* requests to Admin Console.