lab6.py - from flask import Flask render_template,request import datetime import os app = [email protected]\/login methods='GET'POST def send if

lab6.py - from flask import Flask render_template,request...

This preview shows page 1 out of 1 page.

from flask import Flask, render_template,requestimport datetimeimport osapp = Flask(__name__)@app.route("/login" , methods=['GET', 'POST'])def send():if request.method == 'POST':username = request.form['username']password = request.form['password']f = open("output.txt")print(f.readline())f.close()return render_template("login.html")return render_template("login.html")@app.route("/signUp" , methods=['GET', 'POST'])def signUp():
Background image

You've reached the end of your free preview.

Want to read the whole page?

  • Fall '16
  • Nazar

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture