调整目录结构

This commit is contained in:
zhengxinonly
2021-06-12 21:20:13 +08:00
parent 48633729fb
commit d9a5bcb0de
590 changed files with 1072 additions and 1160 deletions
+12
View File
@@ -0,0 +1,12 @@
from flask import Blueprint
index_bp = Blueprint('Index', __name__, url_prefix='/')
def init_index_views(app):
"""
初始化蓝图
"""
app.register_blueprint(index_bp)
+8
View File
@@ -0,0 +1,8 @@
from flask import render_template
from . import index_bp
@index_bp.route('/')
def index():
return render_template('index/index.html')