app.py - from flask import Flask render_template request redirect flash app = Flask_name app.secret_key ='[email protected] methods=\"GET\"POST

app.py - from flask import Flask render_template request...

This preview shows page 1 out of 1 page.

from flask import Flask, render_template, request, redirect, flash app = Flask(__name__) app.secret_key = 'some_secret_key' @app.route("/", methods=["GET", "POST"]) def homepage(): if request.method == "POST": flash("Welcome {}! Have a nice day!".format(request.form["username"])) lst = [["Username", request.form["username"]], ["Date of birth",
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Winter '17
  • Deftones, Terry Date, flask import Flask

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture