(request)
return render(request, "bootstrap4_template.html", {"table": table})
Demonstrate the use of the bootstrap4 template
Demonstrate the use of the bootstrap4 template
Demonstrate the use of the bootstrap4 template
def bootstrap4(request):
    """Demonstrate the use of the bootstrap4 template"""

    create_fake_data()
    table = Bootstrap4Table(Person.objects.all(), order_by="-name")
    RequestConfig(request, paginate={"per_page": 10}).configure(table)

    return render(request, "bootstrap4_template.html", {"table": table})
def bootstrap4 ( request ) : create_fake_data ( ) table = Bootstrap4Table ( Person . objects . all ( ) , order_by = "-name" ) RequestConfig ( request , paginate = { "per_page" : 10 } ) . configure ( table ) return render ( request , "bootstrap4_template.html" , { "table" : table } )