Exemplo n.º 1
0
 def setUp(self):
     logging.getLogger().setLevel(logging.ERROR)
     config = self.get_config()
     self.app = create_app(config)
     self.client = TestAppRedirectWrapper(self.app)
     self.context = self.app.test_request_context()
     self.context.push()
Exemplo n.º 2
0
# -*- coding: utf-8 -*-
# author: Jakub Skałecki ([email protected])

from werkzeug.serving import run_simple
from flask_frontend.app import create_app
from flask_frontend.config import get_local_config, get_production_config


if __name__ == '__main__':
    app = create_app(get_local_config())
    run_simple('localhost', 5000, app, use_reloader=True, use_debugger=True, use_evalex=True)
else:
    app = create_app(get_production_config())