GoogleCloudPlatform / webapp2

webapp2 is a framework for Google App Engine
https://webapp2.readthedocs.org
Other
141 stars 63 forks source link

Doc for webapp2_extras.routes.RedirectRoute has an error #92

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Doc for RedirectRoute redirect_to argument gives the example:

    ... These two are equivalent:
    route = Route('/foo', handler=webapp2.RedirectHandler,
                  defaults={'_uri': '/bar'})
    route = Route('/foo', redirect_to='/bar')

the second is in error, should be:
    route = RedirectRoute('/foo', redirect_to='/bar')

Original issue reported on code.google.com by b...@bdlow.net on 1 Sep 2014 at 11:34