from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def home():
return "Hello World from Flask"
@app.route("/about")
def about():
return "Follow me @dilirkhan"
@app.route("/welcome")
def welcome():
return render_template("welcome.html")
@app.route("/login", methods=['GET','POST'])
def login():
return render_template('login.html')
@app.route("/greet/<int:id>")
def greet(id):
return "%s" %id
if (__name__) == "__main__":
app.run(debug=True)
app = Flask(__name__)
@app.route("/")
def home():
return "Hello World from Flask"
@app.route("/about")
def about():
return "Follow me @dilirkhan"
@app.route("/welcome")
def welcome():
return render_template("welcome.html")
@app.route("/login", methods=['GET','POST'])
def login():
return render_template('login.html')
@app.route("/greet/<int:id>")
def greet(id):
return "%s" %id
if (__name__) == "__main__":
app.run(debug=True)
No comments:
Post a Comment