1from flask import Flask,render_template
2
3app=Flask(__name__,template_folder='template')
4
5
6@app.route("/")
7def home():
8 return render_template('home.html')
9
10@app.route("/about/")
11def about():
12 return render_template('about.html')
13
14if __name__=="__main__":
15 app.run(debug=True)
16
1from flask import Flask, render_template
2
3app = Flask(__name__)
4
5@app.route('/')
6def home():
7 return render_template('home.html')
8
1from flask import Flask, render_template
2app = Flask(__name__)
3@app.route("/profile/<name>")
4def profile(name):
5 return render_template('profile.html', name=name)
6if __name__ == "__main__":
7 app.run(debug=True)
8