Update __init__.py

This commit is contained in:
Mr Chen
2024-11-28 20:16:02 +08:00
parent ab287d42ef
commit 179b00e8a1
+1
View File
@@ -51,6 +51,7 @@ cache.init_app(app, config={'CACHE_TYPE': 'simple'})
# 静态文件配置
from whitenoise import WhiteNoise
app.wsgi_app = WhiteNoise(app.wsgi_app, root="../web/static/", prefix="static/", max_age=604800)
app.jinja_env.trim_blocks = True
# session配置
# app.secret_key = uuid.UUID(int=uuid.getnode()).hex[-12:]