flask_nginx_2
/
app.py
22 строки · 457.0 Байт
1from flask import Flask, render_template2
3app = Flask(__name__)4
5@app.route('/')6def home():7return render_template('index.html')8
9@app.route('/products')10def products():11return render_template('products.html')12
13@app.route('/about')14def about():15return render_template('about.html')16
17@app.route('/contact')18def contact():19return render_template('contact.html')20
21if __name__ == '__main__':22app.run(host='0.0.0.0', port=5000, debug=True)23
24