example_flask / main.py
PandaArtStation's picture
Update main.py
2dfbf7b verified
raw
history blame
543 Bytes
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
@app.route('/about')
def about():
return render_template('about.html')
@app.route('/services')
def services():
return render_template('services.html')
@app.route('/portfolio')
def portfolio():
return render_template('portfolio.html')
@app.route('/contact')
def contact():
return render_template('contact.html')
if __name__ == '__main__':
app.run(host="0.0.0.0",port=7860,debug=False)