更新文档
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
from flask import render_template, Blueprint
|
||||
|
||||
# 创建蓝图
|
||||
helloworld_blueprint = Blueprint('hello_world', __name__, template_folder='templates', static_folder="static",
|
||||
url_prefix="/hello_world")
|
||||
helloworld_blueprint = Blueprint('hello_world', __name__,
|
||||
template_folder='templates',
|
||||
static_folder="static",
|
||||
url_prefix="/hello_world")
|
||||
|
||||
|
||||
@helloworld_blueprint.route("/")
|
||||
def index():
|
||||
return render_template("helloworld_index.html")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user