def make_shell_context():
"""Shell context objects."""
return dict(app=app, db=db, Url=Url)
python类Shell()的实例源码
def main():
manager.add_command("runserver", Server())
manager.add_command("shell", Shell())
manager.run()
def make_shell_context():
"""Shell context objects."""
return dict(app=app, db=db, Url=Url)
def main():
manager.add_command("runserver", Server())
manager.add_command("shell", Shell())
manager.run()