@app.route('/contact', methods=['GET', 'POST']) def contact(): if request.method == 'POST': msg = request.form.get('msg') return render_template("contact.html")