Exemplo n.º 1
0
def show_entries():
    page = 1
    perpage = 5

    entries = Entry.get_page(page)
    total = Entry.get_length()

    return render_template('index.html', **locals())
Exemplo n.º 2
0
def pagination(page):
    perpage = 5
    entries = Entry.get_page(page)
    total = Entry.get_length()

    return render_template('index.html', **locals())