예제 #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)