blob: 007748e6099997830f65631a9594ea21fbef63c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from flask import render_template, request
from flask_classy import FlaskView
from backend.lib import models
class GrumpyView(FlaskView):
route_base='/'
def index(self):
categories = models.Category.query.all()
return render_template("index.html", categories=categories)
|