优化代码
This commit is contained in:
@@ -88,8 +88,8 @@ class DashboardServer:
|
||||
template_folder = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates')
|
||||
app = Flask(__name__, template_folder=template_folder)
|
||||
app.secret_key = "stats_dashboard_secret_key"
|
||||
# 禁用模板缓存,使修改HTML文件后立即生效
|
||||
app.config['TEMPLATES_AUTO_RELOAD'] = True
|
||||
# 禁用模板缓存,使修改HTML文件后立即生效 False =重启才生效
|
||||
app.config['TEMPLATES_AUTO_RELOAD'] = False
|
||||
|
||||
# 设置Werkzeug日志级别为DEBUG
|
||||
import logging
|
||||
|
||||
Reference in New Issue
Block a user