Add template for dashboard with styling
This commit is contained in:
10
app.py
10
app.py
@@ -1,12 +1,8 @@
|
||||
from flask import Flask
|
||||
from flask import Flask, render_template
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
|
||||
@app.route("/")
|
||||
def hello_world():
|
||||
return "<p>Hello, World!</p>"
|
||||
|
||||
|
||||
@app.route("/test")
|
||||
def test_route():
|
||||
return "<p>Hello, test!</p>"
|
||||
return render_template('index.html', name='peter')
|
||||
|
||||
Reference in New Issue
Block a user