mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update __init__.py
This commit is contained in:
@@ -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:]
|
||||
|
||||
Reference in New Issue
Block a user