def configure_app(app, testing=False):
    """set configuration for application
    """
    app.config.from_object('neocortex.config')
    if testing is True:
        app.config.from_object('neocortex.configtest')
    else:
        app.config.from_envvar('NEOCORTEX_CONFIG', silent=True)
