example_flask / main.py
PandaArtStation's picture
Create main.py
afaf528 verified
raw
history blame
507 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()