Also, baseframe.init_app should be immediately after coaster.app.init_app.