from __init__ import static
from flask import render_template,url_for
@static.route('/')
def test():
return render_template("static/test_page.html")

只有在__init__的蓝图中设置template_folder才能勉强读取到html 但是js css就怎么也读取不到 url_for也试过了
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证0级讲师