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

    create_fake_data()
    table = BootstrapTable(Person.objects.all().select_related("country"), order_by="-name")
    RequestConfig(request, paginate={"paginator_class": LazyPaginator, "per_page": 10}).configure(
        table
    )

    return render(request, "bootstrap_template.html", {"table": table})
def bootstrap ( request ) : create_fake_data ( ) table = BootstrapTable ( Person . objects . all ( ) . select_related ( "country" ) , order_by = "-name" ) RequestConfig ( request , paginate = { "paginator_class" : LazyPaginator , "per_page" : 10 } ) . configure ( table ) return render ( request , "bootstrap_template.html" , { "table" : table } )