本文整理汇总了Python中flask.__version__方法的典型用法代码示例。如果您正苦于以下问题:Python flask.__version__方法的具体用法?Python flask.__version__怎么用?Python flask.__version__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类flask
的用法示例。
在下文中一共展示了flask.__version__方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: log_messages
# 需要导入模块: import flask [as 别名]
# 或者: from flask import __version__ [as 别名]
def log_messages(app):
"""Log messages common to Tornado and devserver."""
log = logging.getLogger(__name__)
log.info('Server is running at http://{}:{}/'.format(app.config['HOST'], app.config['PORT']))
log.info('Flask version: {}'.format(flask.__version__))
log.info('DEBUG: {}'.format(app.config['DEBUG']))
log.info('STATIC_FOLDER: {}'.format(app.static_folder))
示例2: log_messages
# 需要导入模块: import flask [as 别名]
# 或者: from flask import __version__ [as 别名]
def log_messages(app, port, fsh_folder):
"""Log messages common to Tornado and devserver."""
log = logging.getLogger(__name__)
log.info('Server is running at http://0.0.0.0:{}/'.format(port))
log.info('Flask version: {}'.format(flask.__version__))
log.info('DEBUG: {}'.format(app.config['DEBUG']))
log.info('FLASK_STATICS_HELPER_FOLDER: {}'.format(fsh_folder))
log.info('STATIC_FOLDER: {}'.format(app.static_folder))
示例3: hello_world
# 需要导入模块: import flask [as 别名]
# 或者: from flask import __version__ [as 别名]
def hello_world():
return jsonify({
'framework': 'Flask {}'.format(flask.__version__),
'application': APPLICATION_NAME,
})
示例4: injetar_extrainfo
# 需要导入模块: import flask [as 别名]
# 或者: from flask import __version__ [as 别名]
def injetar_extrainfo():
return dict(
sathubconf=sathubconf,
flask_version=flask.__version__,
python_version=platform.python_version(),
platform_uname=' | '.join(platform.uname()),
produto=dict(nome='SATHub', versao=sathub_version))