def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def forums():
    categories = Category.query.order_by(Category.position.asc()).all()
    return render_template("management/forums.html", categories=categories)