Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

flask redirect to url

from flask import Flask, redirect

app = Flask(__name__)

@app.route('/')
def index():
    return redirect("http://www.example.com", code=302)

if __name__ == '__main__':
    app.run()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flask #redirect #url
ADD COMMENT
Topic
Name
9+3 =