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 )
from blogapp import app, db if __name__ == '__main__': db.create_all() app.run(debug=True)
from blogapp import app if __name__=='__main__': app.run(host='0.0.0.0', port=5000, debug=True)
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()
from blogapp import app app.run(debug=True, host='0.0.0.0')
#encoding=utf-8 from blogapp import app if __name__ == "__main__": app.run()
from blogapp import app if __name__ == '__main__': app.run(debug=False)