# -*- coding: utf-8 -*-
# @Time    : 2018/4/9 15:43:10
# @Author  : SilverMaple
# @Site    : https://github.com/SilverMaple
# @File    : mtap.py

from app import create_app, db, cli
from app.models import User, Post


app = create_app()
cli.register(app)

@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Post': Post}


if __name__ == '__main__':
    app.run(host='0.0.0.0',port=5000)
6e8130c5ed0a2c9adef9cda614cfd043736451cc
<mask token>

<mask token>
cli.register(app)


@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Post': Post}


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000)

<mask token>
app = create_app()
cli.register(app)


@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Post': Post}


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000)

from app import create_app, db, cli
from app.models import User, Post
app = create_app()
cli.register(app)


@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Post': Post}


if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5000)

# -*- coding: utf-8 -*-
# @Time    : 2018/4/9 15:43:10
# @Author  : SilverMaple
# @Site    : https://github.com/SilverMaple
# @File    : mtap.py

from app import create_app, db, cli
from app.models import User, Post


app = create_app()
cli.register(app)

@app.shell_context_processor
def make_shell_context():
    return {'db': db, 'User': User, 'Post': Post}


if __name__ == '__main__':
    app.run(host='0.0.0.0',port=5000)