摘要:
@app.context_processor def context_processor(): return {"current_user":"zhiliao"}#这里必须有返回值,而且返回值必须是字典 #下面错误的写法 @app.context_processor def context_processor_error(): if hasattr(g,'u... 阅读全文
posted @ 2018-10-07 20:59
python成长中
阅读(1429)
评论(0)
推荐(0)

浙公网安备 33010602011771号