main.py - from flask import Flask redirect url_for request render_template app = [email protected] def index return

main.py - from flask import Flask redirect url_for request...

This preview shows page 1 out of 1 page.

from flask import Flask, redirect, url_for, request, render_template app = Flask(__name__) @app.route('/') def index(): return render_template('test.html') @app.route('/success/<name>') def success(name): return 'welcome %s' % name @app.route('/login',methods = ['POST', 'GET'])
Image of page 1

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '19
  • Del tha Funkee Homosapien, Terry Date, flask import Flask, return redirect, return render_template('test.html

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture