Python flask.__version__() Examples
The following are 4
code examples of flask.__version__().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
flask
, or try the search function
.
Example #1
Source File: gitlab_tools.py From gitlab-tools with GNU General Public License v3.0 | 5 votes |
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))
Example #2
Source File: manage.py From Flask-Large-Application-Example with MIT License | 5 votes |
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))
Example #3
Source File: app.py From python-ddd with MIT License | 5 votes |
def hello_world(): return jsonify({ 'framework': 'Flask {}'.format(flask.__version__), 'application': APPLICATION_NAME, })
Example #4
Source File: views.py From sathub with Apache License 2.0 | 5 votes |
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))