This commit is contained in:
Mr Chen
2018-09-11 16:27:09 +08:00
parent 140e6e8629
commit 4ac07adf40
4 changed files with 15 additions and 2 deletions
+4
View File
@@ -102,3 +102,7 @@ venv.bak/
# mypy
.mypy_cache/
.DS_Store
*.DS_Store
+9 -2
View File
@@ -1,6 +1,13 @@
from flask import Flask
from flask import render_template
app = Flask(__name__)
app.debug = True
@app.route("/h")
def hello():
return "Hello World!"
@app.route("/")
def hello():
return "Hello World!"
def index(name=None):
return render_template('index.html', name=name)
+1
View File
@@ -1,3 +1,4 @@
#!/bin/sh
DEBUG=True
gunicorn -b 127.0.0.1:7200 mdweb:app
+1
View File
@@ -0,0 +1 @@
index