Study Resources
Main Menu
by School
by Textbook
by Literature Title
Study Guides
Infographics
by Subject
Expert Tutors
Contributing
Main Menu
Earn Free Access
Upload Documents
Refer Your Friends
Earn Money
Become a Tutor
Scholarships
For Educators
Log in
Sign up
Find
Study Resources
by School
by Textbook
by Literature Title
Study Guides
Infographics
by Subject
Ask
Expert Tutors
You can ask
!
Earn by
Contributing
Earn Free Access
Learn More >
Upload Documents
Refer Your Friends
Earn Money
Become a Tutor
Scholarships
Learn More >
Are you an educator?
Log in
Sign up
Gujranwala Medical College, Gujranwala
CS
CS 1011
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...
School
Gujranwala Medical College, Gujranwala
Course Title
CS 1011
Type
Lab Report
Uploaded By
imransafdar845
Pages
1
This
preview
shows page
1
out of
1
page.
from flask import Flask, render_template,request
import datetime
import os
app = 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():
You've reached the end of your free preview.
Want to read the whole page?
TERM
Fall '16
PROFESSOR
Nazar
Share this link with a friend:
Copied!