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()
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()
Howt o get redirected to another page using a button in HTML using Python using Flask
<button type="button" onclick="window.location.href='{{ url_for( 'dataTablePage' , table='Y' ) }}';">Display Table Y</button>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us