Browser is opening the URL automatically twice, but I want only once. What to do to open the URL automatically only once?
from flask import Flask,render_template
import webbrowser
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
webbrowser.open("http://localhost:5000/")
if __name__ == '__main__':
app.run(debug = True)