Beispiel #1
0
def show_entries():
    page = 1
    perpage = 5

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

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

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