def logout(): User.logout() flash(local.user['LOGGED_OUT'], 'success') return redirect(url_for('category_all'))