On my main page I have a button that says "Enter"
<button id="Enter" type="button" onclick="/profile" class="button">Enter</button>
</div>
I would like it so that when this button is clicked it directs to the "home" page
Python code:
@app.route('/', methods = ['GET', 'POST'])
def index():
return render_template("main.html")
@app.route('/home', methods = ['GET', 'POST'])
def home():
return render_template("test1.html")
How can this be done? Thanks