def run():
    """Starting the app.
    """
    # init all
    _init_controllers()
    # prepare run values
    _debug = c.app.debug.as_bool()
    # do run
    app.run(debug=_debug)
Example #2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# bewype import
from bewype import config
from bewype.flask import app

if __name__ == '__main__':
    # get debug flag
    _debug = config.Config().get_bool("main>debug")
    # run
    app.run(debug=_debug)