Exemplo n.º 1
0
 def make_static(self, import_name, config=None):
     app = Flask(import_name)
     if config is not None:
         app.config.update(config)
     make_static = MakeStatic(app)
     watcher = make_static.watch(sleep=0.01)
     try:
         yield app, make_static
     finally:
         watcher.stop()
 def make_static(self, import_name, config=None):
     app = Flask(import_name)
     if config is not None:
         app.config.update(config)
     make_static = MakeStatic(app)
     watcher = make_static.watch(sleep=0.01)
     try:
         yield app, make_static
     finally:
         watcher.stop()
Exemplo n.º 3
0
 def make_static_in_app_context(self, import_name, config=None):
     app = Flask(import_name)
     if config is not None:
         app.config.update(config)
     make_static = MakeStatic()
     make_static.init_app(app)
     with app.app_context():
         watcher = make_static.watch(sleep=0.01)
         try:
             yield app, make_static
         finally:
             watcher.stop()
 def make_static_in_app_context(self, import_name, config=None):
     app = Flask(import_name)
     if config is not None:
         app.config.update(config)
     make_static = MakeStatic()
     make_static.init_app(app)
     with app.app_context():
         watcher = make_static.watch(sleep=0.01)
         try:
             yield app, make_static
         finally:
             watcher.stop()