def show_category(category_slug):
from redberry.models import RedCategory
category = RedCategory.query.filter_by(slug=category_slug).first()
if not category:
flash("Category not found!", 'danger')
return redirect(url_for('redberry.home'))
return render_redberry('redberry/category.html', category=category)
评论列表
文章目录