FlaskDormitoryProject/blueprint/index.py
2023-04-28 12:06:42 +08:00

21 lines
424 B
Python

# -*- coding: UTF-8 -*-
"""
@Project : FlaskProject
@File : index.py
@IDE : PyCharm
@Author : 爱写屎山的王可奕
@Email : 1933658780@qq.com
@Date : 2023/4/28 12:02
@Comment : index蓝图
"""
# -*- coding: UTF-8 -*-
from flask import Blueprint, render_template
# 创建蓝图对象
bp_index = Blueprint('bp_index', __name__)
@bp_index.route('/')
def index():
return render_template('index.html')