def standalone(app): '''Factory for an all in one application''' from udata import api, core, frontend core.init_app(app) frontend.init_app(app) api.init_app(app) register_features(app) return app
def standalone(app): '''Factory for an all in one application''' from udata import admin, api, core, frontend core.init_app(app) frontend.init_app(app) api.init_app(app) # admin.init_app(app) from udata import ext ext.init_app(app) return app
def standalone(app): '''Factory for an all in one application''' from udata import api, core, frontend core.init_app(app) frontend.init_app(app) api.init_app(app) from udata import ext ext.init_app(app) # from werkzeug.contrib.profiler import ProfilerMiddleware # app.config['PROFILE'] = True # app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictions=[30]) return app
def standalone(app): '''Factory for an all in one application''' from udata import api, core, frontend core.init_app(app) frontend.init_app(app) api.init_app(app) register_features(app) for plugin in app.config['PLUGINS']: name = 'udata_{0}'.format(plugin) plugin = import_module(name) if hasattr(plugin, 'init_app') and callable(plugin.init_app): plugin.init_app(app) return app
def standalone(app): '''Factory for an all in one application''' from udata import admin, api, core, frontend core.init_app(app) frontend.init_app(app) api.init_app(app) admin.init_app(app) from udata import ext ext.init_app(app) # from werkzeug.contrib.profiler import ProfilerMiddleware # app.config['PROFILE'] = True # app.wsgi_app = ProfilerMiddleware(app.wsgi_app, restrictions=[30]) return app