from flask import render_template, Blueprint, url_for, \
    redirect, flash, request

from project.models import Category, Webinar

category_blueprint = Blueprint('category', __name__,)


@category_blueprint.route('/categories')
def index():
    categories = Category.query.all()
    return render_template('category/categories.html', categories=categories)

from flask import render_template, Blueprint, url_for, \
    redirect, flash, request

from project.models import Category, Webinar

category_blueprint = Blueprint('category', __name__,)


@category_blueprint.route('/categories')
def index():
    categories = Category.query.all()
    return render_template('category/categories.html', categories=categories)


@category_blueprint.route('/category/<category_slug>')
def show(category_slug):
    category = Category.query.filter_by(slug=category_slug)
    return render_template('category/category.html', category=category)

Add basic view to see category show page
Add basic view to see category show page
