Flask调试

1.AttributeError: 'NoneType' object has no attribute 'app'

原因:直接在py中调用视图函数,但没有上下文,导致出错

 

2.不转换html代码

{{str | safe }}

 

3.获取参数request.args.get("id")

posted @ 2017-06-22 18:19  jetz  阅读(159)  评论(0编辑  收藏  举报