add base project
This commit is contained in:
28
web/app.py
Normal file
28
web/app.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from flask import Flask, render_template
|
||||
|
||||
app = Flask(__name__, static_folder='static', static_url_path='/static')
|
||||
|
||||
@app.route('/')
|
||||
def index():
|
||||
return render_template('view/index.html')
|
||||
|
||||
@app.route('/about')
|
||||
def about():
|
||||
return render_template('view/about.html')
|
||||
|
||||
@app.route('/contact')
|
||||
def contact():
|
||||
return render_template('view/contact.html')
|
||||
|
||||
@app.route('/projects')
|
||||
def projects():
|
||||
return render_template('view/projects.html')
|
||||
|
||||
@app.route('/experiences')
|
||||
def experiences():
|
||||
return render_template('view/experiences.html')
|
||||
|
||||
if __name__ == '__main__':
|
||||
# app.run(debug=True)
|
||||
app.run(debug=True, host='0.0.0.0', port=5000)
|
||||
|
||||
Reference in New Issue
Block a user