17 lines
314 B
Python
17 lines
314 B
Python
from flask import Flask, render_template
|
|
|
|
# Create a new Flask instance
|
|
app = Flask(__name__)
|
|
|
|
|
|
# Create a new route
|
|
@app.route('/')
|
|
def index():
|
|
# return 'Hello World'
|
|
return render_template('index.html', title='Home')
|
|
|
|
|
|
# Run the application
|
|
if __name__ == '__main__':
|
|
app.run(port=5000, debug=True)
|