摘要: @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成长中 阅读(1430) 评论(0) 推荐(0)