Skip to content

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

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions