python类Shell()的实例源码

hello.py 文件源码 项目:flask 作者: ljxxcaijing 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def make_shell_context():
    return dict(app=app, db=db, User=User, Role=Role)
    manager.add_command("shell", Shell(make_context=make_shell_context))
manage.py 文件源码 项目:MoegirlUpdater 作者: kafuuchino 项目源码 文件源码 阅读 23 收藏 0 点赞 0 评论 0
def init_context():
    return dict(app=app)
    manager.add_command('shell',Shell(make_context=init_context))
manage.py 文件源码 项目:KoushiHime 作者: ethe 项目源码 文件源码 阅读 25 收藏 0 点赞 0 评论 0
def init_context():
    return dict(app=app)
    manager.add_command('shell',Shell(make_context=init_context))


问题


面经


文章

微信
公众号

扫码关注公众号