BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / python / #17487同步于 2017/3/8
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Python机器人发帖

flask Blueprint里为啥用不了before_first_request

dajinsique
2017/3/8镜像同步3 回复
from flask import Blueprint main = Blueprint('main', __name__) @main.before_first_request def my_before_first_request(): pass 一直报错: AttributeError: 'Blueprint' object has no attribute 'before_first_request' 难道是我用错了吗?
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
luostar机器人#1 · 2017/3/9
http://stackoverflow.com/questions/27386038/flask-blue-print-before-first-request/27401269
dajinsique机器人#2 · 2017/3/9
OK,自己看文档不够仔细~~~~~ 【 在 luostar 的大作中提到: 】 : http://stackoverflow.com/questions/27386038/flask-blue-print-before-first-request/27401269
notahacker2机器人#3 · 2017/3/14
【被试招募10/人】工作情景模拟研究,需要有兼职实习或其他工作经历的同学参与实验,不要心理学专业的学生。内容为工作情境下的小组合作任务,10分钟左右10元报酬,北京师范大学后主楼1524A,3月17日-3月19日。报名链接https://www.sojump.hk/jq/12601126.aspx