@ML1012018ZHENG/

fewqfwqfewqf

Python

No description

fork
loading
Files
  • main.py
  • static
  • templates
  • requirements.txt
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from flask import Flask,render_template,flash, redirect,url_for,session,logging,request
from threading import Thread

app = Flask(__name__)

@app.route('/')
def main():
  return "sign in"

@app.route('/signin', methods=["POST","GET"])
def signin():
  return render_template("login.html")

@app.route('/home', methods=["POST","GET"])
def home():
  if request.methods == "post":
    return render_template("home.html")
  else:
    return "signin"
app.run(debug = True)