示例#1
0
import os
from blogapp import app


if __name__ == '__main__':
    port = int(os.environ.get('PORT', 5000))

    app.run(
        host='0.0.0.0',
        port=port,
        threaded=True,
        debug=False
    )
示例#2
0
from blogapp import app, db

if __name__ == '__main__':
    db.create_all()
    app.run(debug=True)
示例#3
0
from blogapp import app

if __name__=='__main__':
    app.run(host='0.0.0.0', port=5000, debug=True)
示例#4
0
from blogapp import app, db
from blogapp.models import User, Post


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


if __name__ == "__main__":
    app.run()
示例#5
0
文件: run.py 项目: mytime/myflask
from blogapp import app

app.run(debug=True, host='0.0.0.0')
示例#6
0
文件: run.py 项目: yuanshandaren/hehe
#encoding=utf-8
from blogapp import app
if __name__ == "__main__":
    app.run()

示例#7
0
from blogapp import app

if __name__ == '__main__':
    app.run(debug=False)