Import current_app

Last hotfix, I promise :<