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

from project.models import Category, Webinar
from .helpers import slugify

category_blueprint = Blueprint('category', __name__,)

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

from project.models import Category, Webinar
from .helpers import slugify

category_blueprint = Blueprint('category', __name__,)


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

Create simple categories page view
Create simple categories page view
